Skip to content

Latest commit

 

History

History
164 lines (127 loc) · 4.02 KB

documentation.md

File metadata and controls

164 lines (127 loc) · 4.02 KB

#Index

Classes

Namespaces

Events

Functions

#class: Selectbox Members

##new Selectbox(select) Creates new selectbox component

Params

  • select HTMLSelectElement

##Selectbox.disable(HTMLNode) Disable selectbox

Params

  • HTMLNode Node - containing select block

##Selectbox.enable(HTMLNode) Enable selectbox

Params

  • HTMLNode Node - containing select block

##const: Selectbox.E_CREATED Type: string
Default: selectbox:created
##const: Selectbox.E_CHANGED Type: string
Default: selectbox:changed
##const: Selectbox.E_CHANGE_VALUE Type: string
Default: selectbox:changevalue
#Selectbox Copyright: Devexperts
Members

##Selectbox.disable(HTMLNode) Disable selectbox

Params

  • HTMLNode Node - containing select block

##Selectbox.enable(HTMLNode) Enable selectbox

Params

  • HTMLNode Node - containing select block

##const: Selectbox.E_CREATED Type: string
Default: selectbox:created
##const: Selectbox.E_CHANGED Type: string
Default: selectbox:changed
##const: Selectbox.E_CHANGE_VALUE Type: string
Default: selectbox:changevalue
#event: "selectbox:created" Triggers when electbox is created

#event: "selectbox:changed" Triggers when selectbox is changed

#event: "selectbox:changevalue" Should be fired after external select index change

#showDropDown() Show dropdown

#hideDropDown() Hide dropdown

#getText() Get current label

Returns: String
#getValue() Get current value

Returns: Number | String
#getBlock() Get HTMLNode containing selectbox

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

Returns: Node