phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlDropdownItem Class Reference

Inner element for Twitter Bootstrap HTML Dropdown component. More...

+ Inheritance diagram for HtmlDropdownItem:

Public Member Functions

 __construct ($identifier)
 
 setItemClass ($itemClass)
 
 setItemRole ($itemRole)
 
 setClass ($value)
 Set the item class.
 
 setCaption ($value)
 Set the item caption.
 
 disable ()
 
 active ()
 
 setHref ($value)
 Set the item href.
 
 setRole ($value)
 Set the item role.
 
 isDivider ()
 
 __toString ()
 
 fromArray ($array)
 /* Initialise l'objet à partir d'un tableau associatif array("identifier"=>"id","caption"=>"","class"=>"","href"=>"","role"=>"")
 
 run (JsUtils $js)
 
Parameters
JsUtils$js
Returns
SimpleExtComponent
See also
\Ajax\common\html\BaseHtmlrun()
See also
\Ajax\common\html\BaseHtmlrun()

 
 runNav (JsUtils $js)
 Js component creation when dropdownItem is in Navs/Pills.
 
 getHref ()
 
 addBadge ($caption, $leftSeparator=" ")
 
 addGlyph ($glyphicon, $left=true, $separator=" ")
 
 getTarget ()
 
 setTarget ($target)
 
- Public Member Functions inherited from HtmlBsDoubleElement
 addLabel ($caption, $style="label-default", $leftSeparator=" ")
 
 addGlyph ($glyphicon, $before=true)
 
 wrapContentWithGlyph ($glyphBefore, $glyphAfter="")
 
- Public Member Functions inherited from HtmlDoubleElement
 __construct ($identifier, $tagName="p")
 
 setContent ($content)
 
 getContent ()
 
 addContent ($content, $before=false)
 
 setValue ($value)
 
 wrapContent ($before, $after="")
 
 wrapWith (HtmlDoubleElement $container)
 Wraps the element with a container.
 
 getContentInstances ($class)
 
 asLink ($href=NULL, $target=NULL)
 Transforms the element into a link.
 
 getTextContent ()
 
 asEditable (HtmlFormField $field, $asForm=false, $setValueProperty="val()")
 
- Public Member Functions inherited from HtmlSingleElement
 addClass ($classNames)
 
 setTitle ($value)
 
 setStyle ($value)
 
 setSize ($size)
 
- Public Member Functions inherited from BaseHtml
 getTagName ()
 
 setTagName ($tagName)
 
 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)
 
 asDropZone ($jsCallback="", $jqueryDone="append", $parameters=[])
 Declares the element as a drop zone (HTML5 drag and drop)
 
 asFileDropZone ($responseElement=null, $url=null, $progress=null, $jsCallback="", $parameters=[])
 Declares the element as a drop zone for file uploading (HTML5 drag and drop)
 
 onPostCompile ($callback)
 
 onPreCompile ($callback)
 
- Public Member Functions inherited from BaseWidget
 getIdentifier ()
 
 setIdentifier ($identifier)
 
 getLibraryId ()
 
 setLibraryId ($_libraryId)
 
- Public Member Functions inherited from BaseHtmlEventsTrait
 addEvent ($event, $jsCode, $stopPropagation=false, $preventDefault=false)
 
 trigger ($event, $params="[]")
 
 jsTrigger ($event, $params="[this]")
 
 _addEvent ($event, $jsCode)
 
 on ($event, $jsCode, $stopPropagation=false, $preventDefault=false)
 
 onClick ($jsCode, $stopPropagation=false, $preventDefault=true)
 
 setClick ($jsCode)
 
 onCreate ($jsCode)
 
 addEventsOnRun (JsUtils $js=NULL)
 
 _ajaxOn ($operation, $event, $url, $responseElement="", $parameters=array())
 
 getOn ($event, $url, $responseElement="", $parameters=array())
 Performs a get to $url on the event $event on $element and display it in $responseElement.
 
 getOnClick ($url, $responseElement="", $parameters=array())
 Performs a get to $url on the click event on $element and display it in $responseElement.
 
 postOn ($event, $url, $params="{}", $responseElement="", $parameters=array())
 Performs a post to $url on the event $event on $element and display it in $responseElement.
 
 postOnClick ($url, $params="{}", $responseElement="", $parameters=array())
 Performs a post to $url on the click event on $element and display it in $responseElement.
 
 postFormOn ($event, $url, $form, $responseElement="", $parameters=array())
 Performs a post form with ajax.
 
 postFormOnClick ($url, $form, $responseElement="", $parameters=array())
 Performs a post form with ajax on click.
 
 jsDoJquery ($jqueryCall, $param="")
 
 executeOnRun ($jsCode)
 
 jsHtml ($content="")
 
 jsShow ()
 
 jsHide ()
 
 jsToggle ($value)
 
 getEvents ()
 
- Public Member Functions inherited from BaseHtmlPropertiesTrait
 getProperties ()
 
 setProperties ($properties)
 
 setProperty ($name, $value)
 
 getProperty ($name)
 
 addToProperty ($name, $value, $separator=" ")
 
 addProperties ($properties)
 
 removePropertyValue ($name, $value)
 
 addToPropertyCtrl ($name, $value, $typeCtrl)
 
 addToPropertyCtrlCheck ($name, $value, $typeCtrl)
 
 removeProperty ($name)
 
 propertyContains ($propertyName, $value)
 

Protected Attributes

 $_htmlDropdown
 
 $class
 
 $itemClass
 
 $href
 
 $role
 
 $itemRole
 
 $target
 
- Protected Attributes inherited from HtmlDoubleElement
 $content
 
 $wrapContentBefore = ""
 
 $wrapContentAfter = ""
 
 $_editableContent
 
- Protected Attributes inherited from BaseHtml
 $_template
 
 $tagName
 
 $_wrapBefore = array()
 
 $_wrapAfter = array()
 
 $_bsComponent
 
 $_compiled = false
 
 $_runned = false
 
 $_postCompile
 
 $_preCompile
 
- Protected Attributes inherited from BaseWidget
 $identifier
 
 $_identifier
 
 $_libraryId
 
 $_self
 
- Protected Attributes inherited from BaseHtmlEventsTrait
 $_events =array ()
 
- Protected Attributes inherited from BaseHtmlPropertiesTrait
 $properties =array ()
 

Additional Inherited Members

- Protected Member Functions inherited from HtmlDoubleElement
 _getContentInstances ($class, $content)
 
 compile_once (\Ajax\JsUtils $js=NULL, &$view=NULL)
 {}
 
- Protected Member Functions inherited from BaseHtml
 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)
 
- Protected Member Functions inherited from BaseWidget
 cleanIdentifier ($id)
 
- Protected Member Functions inherited from BaseHtmlEventsTrait
 _eventsOnCreate (JsUtils $js=NULL)
 
- Protected Member Functions inherited from BaseHtmlPropertiesTrait
 removePropertyValues ($name, $values)
 
 addToPropertyUnique ($name, $value, $typeCtrl)
 
 setPropertyCtrl ($name, $value, $typeCtrl)
 
 getElementByPropertyValue ($propertyName, $value, $elements)
 

Detailed Description

Inner element for Twitter Bootstrap HTML Dropdown component.

Author
jc
Version
1.001

Definition at line 17 of file HtmlDropdownItem.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $identifier)
Parameters
string$identifierthe id

Reimplemented from BaseWidget.

Definition at line 30 of file HtmlDropdownItem.php.

Member Function Documentation

◆ __toString()

__toString ( )

Reimplemented from BaseHtml.

Definition at line 114 of file HtmlDropdownItem.php.

◆ active()

active ( )

Definition at line 85 of file HtmlDropdownItem.php.

◆ addBadge()

addBadge (   $caption,
  $leftSeparator = " " 
)

Reimplemented from HtmlBsDoubleElement.

Definition at line 145 of file HtmlDropdownItem.php.

◆ addGlyph()

addGlyph (   $glyphicon,
  $left = true,
  $separator = " " 
)

Definition at line 152 of file HtmlDropdownItem.php.

◆ disable()

disable ( )

Definition at line 80 of file HtmlDropdownItem.php.

◆ fromArray()

fromArray (   $array)

/* Initialise l'objet à partir d'un tableau associatif array("identifier"=>"id","caption"=>"","class"=>"","href"=>"","role"=>"")

See also
BaseHtml::addProperties()

Reimplemented from HtmlSingleElement.

Definition at line 123 of file HtmlDropdownItem.php.

◆ getHref()

getHref ( )

Definition at line 141 of file HtmlDropdownItem.php.

◆ getTarget()

getTarget ( )

Definition at line 163 of file HtmlDropdownItem.php.

◆ isDivider()

isDivider ( )

Definition at line 110 of file HtmlDropdownItem.php.

◆ run()

run ( JsUtils  $js)

Parameters
JsUtils$js
Returns
SimpleExtComponent
See also
\Ajax\common\html\BaseHtmlrun()
See also
\Ajax\common\html\BaseHtmlrun()

See also
\Ajax\common\html\BaseHtml::run()

Reimplemented from HtmlDoubleElement.

Definition at line 127 of file HtmlDropdownItem.php.

◆ runNav()

runNav ( JsUtils  $js)

Js component creation when dropdownItem is in Navs/Pills.

Parameters
JsUtils$js

Definition at line 137 of file HtmlDropdownItem.php.

◆ setCaption()

setCaption (   $value)

Set the item caption.

Parameters
string$value
Returns
$this

Definition at line 66 of file HtmlDropdownItem.php.

◆ setClass()

setClass (   $value)

Set the item class.

Parameters
string$value
Returns
$this default : ''

Reimplemented from HtmlSingleElement.

Definition at line 56 of file HtmlDropdownItem.php.

◆ setHref()

setHref (   $value)

Set the item href.

Parameters
string$value
Returns
$this default : '#'

Definition at line 95 of file HtmlDropdownItem.php.

◆ setItemClass()

setItemClass (   $itemClass)

Definition at line 41 of file HtmlDropdownItem.php.

◆ setItemRole()

setItemRole (   $itemRole)

Definition at line 46 of file HtmlDropdownItem.php.

◆ setRole()

setRole (   $value)

Set the item role.

Parameters
string$value
Returns
$this default : ''

Reimplemented from HtmlSingleElement.

Definition at line 105 of file HtmlDropdownItem.php.

◆ setTarget()

setTarget (   $target)

Definition at line 167 of file HtmlDropdownItem.php.

Field Documentation

◆ $_htmlDropdown

$_htmlDropdown
protected

Definition at line 18 of file HtmlDropdownItem.php.

◆ $class

$class
protected

Definition at line 19 of file HtmlDropdownItem.php.

◆ $href

$href
protected

Definition at line 21 of file HtmlDropdownItem.php.

◆ $itemClass

$itemClass
protected

Definition at line 20 of file HtmlDropdownItem.php.

◆ $itemRole

$itemRole
protected

Definition at line 23 of file HtmlDropdownItem.php.

◆ $role

$role
protected

Definition at line 22 of file HtmlDropdownItem.php.

◆ $target

$target
protected

Definition at line 24 of file HtmlDropdownItem.php.


The documentation for this class was generated from the following file: