Skip to content

Latest commit

 

History

History
207 lines (168 loc) · 5.18 KB

documentation.md

File metadata and controls

207 lines (168 loc) · 5.18 KB

#Index

Classes

Namespaces

Events

Functions

#class: DropDown Members

##new DropDown(control, config) Creates new dropdown

Params

  • control Node | Element
  • config Object - {Array:modifiers, String|Number:width, String:optionTmpl, String:groupTmpl, String:innerTmpl}

##DropDown.isAnyShown() Gets if there is any shown dropdown

Returns: Boolean
##const: DropDown.E_CREATED Type: string
Default: dropdown:created
##const: DropDown.E_SHOWN Type: string
Default: dropdown:shown
##const: DropDown.E_HIDDEN Type: string
Default: dropdown:hidden
##const: DropDown.E_CHANGED Type: string
Default: dropdown:changed
##const: DropDown.E_HIDE Type: string
Default: dropdown:hide
#DropDown Copyright: Devexperts
Members

##DropDown.isAnyShown() Gets if there is any shown dropdown

Returns: Boolean
##const: DropDown.E_CREATED Type: string
Default: dropdown:created
##const: DropDown.E_SHOWN Type: string
Default: dropdown:shown
##const: DropDown.E_HIDDEN Type: string
Default: dropdown:hidden
##const: DropDown.E_CHANGED Type: string
Default: dropdown:changed
##const: DropDown.E_HIDE Type: string
Default: dropdown:hide
#event: "dropdown:hidden" Dropdown is hidden

#event: "dropdown:created" Dropdown is created

#event: "dropdown:shown" Dropdown is shown

#event: "dropdown:hide" Hide dropdown

#event: "dropdown:changed" Dropdown has changed

#show() Shows dropdown

#hide() Hides dropdown

#setSelectedIndex(index, [triggerChangeEvent]) Sets popup selectedelement by index

Params

  • index Number
  • [triggerChangeEvent=false] bool - whether or not trigger dropdown:changed event

#setDataList(data) Sets popup data list

Params

  • data Object

#setHoveredIndex(index) Sets popup hoveredelement by index

Params

  • index Number

#getSelectedIndex() Gets popup selectedelement by index

Returns: Number - selectedIndex
#getHoveredIndex() Gets popup hoveredelement by index

Returns: Number - hoveredIndex
#getBlock() Gets HTMLNode containing dropdown

Returns: Node
#getEventTarget() Gets element which listens to events

Returns: Node
#isShown() Gets whether dropdown is shown

Returns: bool