Unofficial Content
  • This documentation is valid for:

Download here

Control Description

The Slide Down Menu control is a menu that you can stack on your page to categorize your links. The sample was taken from http://www.dynamicdrive.com/dynamicindex1/slashdot.htm.

SlideDownMenuExecutionVideo

Using the control

The control basically loads an SDT which contains the menu items. Consequently, you will have to create a SlideDownMenuData SDT-based variable which must be assigned to the control's SlideDownMenuData property. The structure of the SlideDownMenuData SDT is as follows:

SlideDownMenuSDTStructure

When the user clicks on a menu item, a server event will be raised. That event can be handled as follows:

Event SlideDownMenu1.SDItemClicked
   msg("Selected ParentID " + str(&SelectedItem.ParentID) + " Selected SectionID " + str(&SelectedItem.SectionID)
EndEvent

Example

//Sample Code for SlideDownMenu
Sub 'SlideDownMenuSample'
  &SlideDownMenuData = DPSlideDownMenuData()
EndSub

:Using a Data Provider
SlideDownMenuData
{ 
  SlideDownMenuDataItem
  where MenuPosition = MenuPosition.Left 
  where MenuParentID = 0
  {
    ParentID = MenuID
    ParentTitle = MenuTitle
    ParentDescription = MenuDescription
    Items.Insert(MenuID)
  }
}

SubGroup Items(&MenuID)
Sections
{
  SectionsItem
  where MenuParentID = &MenuID 
  {
    SectionID = MenuID
    SectionTitle = MenuTitle
    SectionDescription = MenuDescription
    SectionURL = MenuURL
  }
}
EndSubGroup

The Data Provider outputs an SDT which is based on the following Menu Transaction structure:

SlideDownMenuTrnStructure

The sample shown above will create the following Slide Down Menu:

SlideDownMenuExecutionVideo

In addition, the control offers a set of properties to customize its behavior.

Control Properties

  • Width
  • Height
  • ControlName
  • Speed: sets the amount of time the menu takes to open and collapse
  • One Submenu Only: One expanded submenu at a time (default false)
  • Remember: Store menu states (default True)
  • VersionNumer: Version of the control (read-only)

Control Events

  • SDItemClicked: raised when the user clicks on a menu item.

Licensing

Please refer to http://www.dynamicdrive.com/notice.htm

To Install It Please visit: Default Installation Instructions for User Controls.

Contact information

 Please send feedback to: armando@simplifica.com.uy

Change Log

20080416: SectionURL property added to SlideDownMenuData SDT.  VersionNumber property added to control's properties. DataProvider added to SlideDownMenuSDT.xpz distributed with the control

   

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant