|
| __construct ($identifier, $value="", $items=array(), $cssStyle=null, $onClick=null) |
|
| setMTagName ($value) |
| Define the tagName of the main element. More...
|
|
| setStyle ($cssStyle) |
| define the button style avaible values : "btn-default","btn-primary","btn-success","btn-info","btn-warning","btn-danger" More...
|
|
| setValue ($value) |
|
| setSize ($size) |
| define the buttons size available values : "btn-group-lg","","btn-group-sm","btn-group-xs" More...
|
|
| addItem ($caption, $href="#") |
| add an HtmlDropdownItem More...
|
|
| addDivider () |
|
| addHeader ($caption) |
|
| addItems ($items) |
|
| fromArray ($array) |
|
| setItems ($items) |
|
| getItem ($index) |
| Return the item at $index. More...
|
|
| setBtnClass ($value) |
|
| setMClass ($value) |
|
| addBtnClass ($value) |
|
| addmClass ($value) |
|
| run (JsUtils $js) |
|
| setTagName ($tagName) |
| Sets the tagName's dropdown. More...
|
|
| __toString () |
|
| setBtnCaption ($btnCaption) |
|
| getItemsCount () |
|
| setAlignment ($alignment) |
|
| dropup () |
|
| getItems () |
|
| asButton ($cssStyle="btn-primary") |
|
| onShow ($jsCode) |
| This event fires immediately when the show instance method is called. More...
|
|
| onShown ($jsCode) |
| This event is fired when a dropdown element has been made visible to the user (will wait for CSS transitions to complete). More...
|
|
| onHide ($jsCode) |
| This event is fired immediately when the hide method has been called. More...
|
|
| onHidden ($jsCode) |
| This event is fired when a dropdown element has been hidden from the user (will wait for CSS transitions to complete). More...
|
|
| on ($event, $jsCode, $stopPropagation=false, $preventDefault=false) |
|
| fromDatabaseObject ($object, $function) |
|
| __construct ($identifier, $value="", $cssStyle=null, $onClick=null) |
| Constructs an HTML Bootstrap button. More...
|
|
| setValue ($value) |
| Set the button value. More...
|
|
| setStyle ($cssStyle) |
| define the button style avaible values : "btn-default","btn-primary","btn-success","btn-info","btn-warning","btn-danger" More...
|
|
| setSize ($size) |
| define the button size available values : "btn-lg","","btn-sm","btn-xs" More...
|
|
| setActive () |
| Sets the "active" css class to the button. More...
|
|
| setDisabled () |
| Disables the button. More...
|
|
| setToggled () |
|
| run (JsUtils $js) |
|
| fromArray ($array) |
|
| addBadge ($caption, $leftSeparator=" ") |
|
| addLabel ($caption, $style="label-default", $leftSeparator=" ") |
|
| addGlyph ($glyphicon, $before=true) |
|
| wrapContentWithGlyph ($glyphBefore, $glyphAfter="") |
|
| __construct ($identifier, $tagName="p") |
|
| setContent ($content) |
|
| getContent () |
|
| addContent ($content, $before=false) |
|
| run (JsUtils $js) |
|
| setValue ($value) |
|
| wrapContent ($before, $after="") |
|
| wrapWith (HtmlDoubleElement $container) |
| Wraps the element with a container. More...
|
|
| getContentInstances ($class) |
|
| asLink ($href=NULL, $target=NULL) |
| Transforms the element into a link. More...
|
|
| getTextContent () |
|
| asEditable (HtmlFormField $field, $asForm=false, $setValueProperty="val()") |
|
| __construct ($identifier, $tagName="br") |
|
| setClass ($classNames) |
|
| addClass ($classNames) |
|
| setRole ($value) |
|
| setTitle ($value) |
|
| setStyle ($value) |
|
| run (JsUtils $js) |
|
| fromArray ($array) |
|
| setSize ($size) |
|
| run (JsUtils $js) |
|
| getTagName () |
|
| setTagName ($tagName) |
|
| fromArray ($array) |
|
| fromDatabaseObjects ($objects, $function) |
|
| fromDatabaseObject ($object, $function) |
|
| wrap ($before, $after="") |
|
| getElementById ($identifier, $elements) |
|
| getBsComponent () |
|
| setBsComponent ($bsComponent) |
|
| compile (JsUtils $js=NULL, &$view=NULL) |
|
| setDraggable ($attr="id", $dropZone=null, $parameters=[]) |
| Sets the element draggable, and eventualy defines the dropzone (HTML5 drag and drop) More...
|
|
| asDropZone ($jsCallback="", $jqueryDone="append", $parameters=[]) |
| Declares the element as a drop zone (HTML5 drag and drop) More...
|
|
| asFileDropZone ($responseElement=null, $url=null, $progress=null, $jsCallback="", $parameters=[]) |
| Declares the element as a drop zone for file uploading (HTML5 drag and drop) More...
|
|
| __toString () |
|
| onPostCompile ($callback) |
|
| onPreCompile ($callback) |
|
| __construct ($identifier) |
|
| getIdentifier () |
|
| setIdentifier ($identifier) |
|
| getLibraryId () |
|
| setLibraryId ($_libraryId) |
|
|
| _getContentInstances ($class, $content) |
|
| compile_once (\Ajax\JsUtils $js=NULL, &$view=NULL) |
| {} More...
|
|
| getTemplate (JsUtils $js=NULL, $view=null) |
|
| ctrl ($name, $value, $typeCtrl) |
|
| setMemberCtrl (&$name, $value, $typeCtrl) |
|
| addToMemberUnique (&$name, $value, $typeCtrl, $separator=" ") |
|
| addToMemberCtrl (&$name, $value, $typeCtrl, $separator=" ") |
|
| addToMember (&$name, $value, $separator=' ') |
|
| removeOldValues (&$oldValue, $allValues) |
|
| _getElementBy ($callback, $elements) |
|
| setWrapBefore ($wrapBefore) |
|
| setWrapAfter ($wrapAfter) |
|
| compile_once (JsUtils $js=NULL, &$view=NULL) |
|
| cleanIdentifier ($id) |
|
Twitter Bootstrap HTML Dropdown component.
- Author
- jc
- Version
- 1.001
Definition at line 16 of file HtmlDropdown.php.