new bbbfly.DropDownBox (def, ref, parent)
Basic DropDownBox Control.
Parameters
| Name | Type | Description |
|---|---|---|
| def | bbbfly.DropDownBox.Definition | optional Descendant definition |
| ref | object | optional Reference owner |
| parent | object | string | optional Parent DIV element or it's ID |
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| DropDownAlign | bbbfly.DropDownBox.ddalign | bottom |
Extends
In Packages
Interfaces
Members
-
static ddalign enum integer
-
Possible values for bbbfly.DropDownBox.DropDownAlign
Name Type Default Description left integer 1 left_top integer 2 left_bottom integer 3 right integer 4 right_top integer 5 right_bottom integer 6 top integer 7 top_left integer 8 top_right integer 9 bottom integer 10 bottom_left integer 11 bottom_right integer 12
Methods
-
inherited AddChildControl (ctrl)
-
Parameters:
Name Type Description ctrl ngControl optional Child control reference -
inherited Blur ()
-
inherited CreateControl (def){object|null}
-
Parameters:
Name Type Description def ngControl.Definition optional Child control definition Returns:
Type Description object | null Created control -
inherited DisposeControls ()
-
inherited Focus ()
-
- See:
-
inherited FocusEnd ()
-
- See:
-
inherited FocusStart ()
-
- See:
-
inherited GetAlt (){string|null}
-
- See:
Returns:
Type Description string | null -
inherited GetAltText (){string|null}
-
Returns:
Type Description string | null -
inherited GetButton (buttonId){bbbfly.Button|null}
-
Parameters:
Name Type Description buttonId string Required button's id Returns:
Type Description bbbfly.Button | null Button with passes id -
inherited GetButtons (){object}
-
Returns:
Type Description object -
inherited GetCaretPos (){integer}
-
- See:
Returns:
Type Description integer Caret position -
inherited GetClassName (suffix){string}
-
Parameters:
Name Type Description suffix string optional Control part class name Returns:
Type Description string Control class name -
inherited GetControlsHolder (){object}
-
Returns:
Type Description object ControlsPanel control or self -
inherited GetControlsPanel (){object|null}
-
Returns:
Type Description object | null ControlsPanel control -
GetDropDown (){object|null}
-
Returns:
Type Description object | null Drop down panel control -
inherited GetFrame (){bbbfly.Renderer.frame}
-
Returns:
Type Description bbbfly.Renderer.frame Frame definition -
inherited GetFrameDims (){object}
-
Returns:
Type Description object Frame dimensions -
inherited GetFramePanel (){object|null}
-
Returns:
Type Description object | null FramePanel control -
inherited GetInputPanel (){object|null}
-
- See:
Returns:
Type Description object | null Input panel control -
inherited GetState (){bbbfly.Renderer.state}
-
Returns:
Type Description bbbfly.Renderer.state Control state -
inherited GetText (){string|null}
-
Returns:
Type Description string | null -
HideDropDown (ddCtrl){boolean}
-
Parameters:
Name Type Description ddCtrl ngControl optional Drop down control Returns:
Type Description boolean If succesful -
inherited RemoveChildControl (ctrl)
-
Parameters:
Name Type Description ctrl ngControl optional Child control reference -
inherited SetAlt (alt, update)
-
Parameters:
Name Type Default Description alt string | null Value to set update boolean true optional If update control - See:
-
inherited SetAltText (text, update, forceChange)
-
Parameters:
Name Type Default Description text string | null Value to set update boolean true optional If update control forceChange boolean false optional Force to act like value has changed -
inherited SetCaretPos (pos)
-
Parameters:
Name Type Description pos integer Caret position - See:
-
inherited SetEnabled (enabled, update){boolean}
-
Parameters:
Name Type Default Description enabled boolean true optional Value to set update boolean true optional If update control Returns:
Type Description boolean False if change was denied -
inherited SetInvalid (invalid, update){boolean}
-
Parameters:
Name Type Default Description invalid boolean true optional Value to set update boolean true optional If update control Returns:
Type Description boolean False if change was denied -
inherited SetOverflow (overflowX, overflowY, update){boolean}
-
Parameters:
Name Type Default Description overflowX bbbfly.Renderer.overflow hidden optional Horizontal value to set overflowY bbbfly.Renderer.overflow hidden optional Vertical value to set update boolean true optional If update control Returns:
Type Description boolean False if change was denied -
inherited SetReadOnly (readonly, update){boolean}
-
Parameters:
Name Type Default Description readonly boolean true optional Value to set update boolean true optional If update control Returns:
Type Description boolean False if change was denied -
inherited SetSelected (selected, update){boolean}
-
Parameters:
Name Type Default Description selected boolean true optional Value to set update boolean true optional If update control Returns:
Type Description boolean False if change was denied -
inherited SetText (text, update, forceChange){boolean}
-
Parameters:
Name Type Default Description text string | null Value to set update boolean true optional If update control forceChange boolean false optional Force to act like value has changed Returns:
Type Description boolean False if change was denied -
ShowDropDown (ddCtrl){boolean}
-
Parameters:
Name Type Description ddCtrl ngControl optional Drop down control Returns:
Type Description boolean If succesful -
ToggleDropDown (ddCtrl){boolean}
-
Parameters:
Name Type Description ddCtrl ngControl optional Drop down control Returns:
Type Description boolean If succesful -
inherited TrackChildControls ()
-
-
inherited TrackControl (ctrl, track)
-
Parameters:
Name Type Default Description ctrl ngControl optional Tracked control reference track boolean true optional Pass false to cancel tracking -
UpdateDropDownPosition (ddCtrl)
-
Parameters:
Name Type Description ddCtrl ngControl optional Drop down control - See:
Events
-
inherited IsTrackedControlChanged (ctrl, options)
-
Parameters:
Name Type Description ctrl ngControl optional Tracked control reference options object optional Per tracker options -
inherited OnAltChanged ()
-
inherited OnAltTextChanged ()
-
- See:
-
inherited OnAutoSized ()
-
-
inherited OnBlur (input){boolean}
-
Parameters:
Name Type Description input HTMLInputElement Input element - See:
Returns:
Type Description boolean Return false to deny any changes -
inherited OnChildControlAdded (ctrl)
-
Parameters:
Name Type Description ctrl ngControl optional Child control reference -
inherited OnChildControlRemoved (ctrl)
-
Parameters:
Name Type Description ctrl ngControl optional Child control reference -
OnDropDownChanged (ddCtrl)
-
Parameters:
Name Type Description ddCtrl ngControl Drop down control -
inherited OnEnabledChanged ()
-
- See:
-
inherited OnFocus (input){boolean}
-
Parameters:
Name Type Description input HTMLInputElement Input element - See:
Returns:
Type Description boolean Return false to deny any hanges -
inherited OnInvalidChanged ()
-
- See:
-
inherited OnKeyDown (code, input){boolean}
-
Parameters:
Name Type Description code integer Pressed key code input HTMLInputElement Input element - See:
Returns:
Type Description boolean Return false to deny any hanges -
inherited OnKeyUp (code, input){boolean}
-
Parameters:
Name Type Description code integer Pressed key code input HTMLInputElement Input element - See:
Returns:
Type Description boolean Return false to deny any changes -
inherited OnOverflowChanged ()
-
inherited OnReadOnlyChanged ()
-
inherited OnSelectedChanged ()
-
inherited OnSetAlt (alt, update){boolean}
-
Parameters:
Name Type Default Description alt boolean Value to set update boolean true optional If update control - See:
Returns:
Type Description boolean Return false to deny value change -
inherited OnSetAltText (text, update){boolean}
-
Parameters:
Name Type Default Description text boolean Value to set update boolean true optional If update control Returns:
Type Description boolean Return false to deny value change -
inherited OnSetEnabled (enabled){boolean}
-
Parameters:
Name Type Description enabled boolean Value to set Returns:
Type Description boolean Return false to deny value change -
inherited OnSetInvalid (invalid){boolean}
-
Parameters:
Name Type Description invalid boolean Value to set Returns:
Type Description boolean Return false to deny value change -
inherited OnSetOverflow (overflowX, overflowY){boolean}
-
Parameters:
Name Type Description overflowX bbbfly.Renderer.overflow optional Horizontal value to set overflowY bbbfly.Renderer.overflow optional Vertical value to set Returns:
Type Description boolean Return false to deny values change -
inherited OnSetReadOnly (readonly){boolean}
-
Parameters:
Name Type Description readonly boolean Value to set Returns:
Type Description boolean Return false to deny value change -
inherited OnSetSelected (selected){boolean}
-
Parameters:
Name Type Description selected boolean Value to set Returns:
Type Description boolean Return false to deny value change -
inherited OnSetText (text, update){boolean}
-
Parameters:
Name Type Default Description text boolean Value to set update boolean true optional If update control - See:
Returns:
Type Description boolean Return false to deny value change -
inherited OnTextChanged ()
-
inherited OnTrackedControlChanged (ctrl)
-
Parameters:
Name Type Description ctrl ngControl optional Tracked control reference