phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
JsUtilsActionsTrait.php File Reference

Go to the source code of this file.

Namespaces

 Ajax\common\traits
 

Functions

 _showHideWithEffect ($action, $element='this', $speed='', $callback='', $immediatly=false)
 show or hide with effect More...
 
 _validate_speed ($speed)
 Ensures the speed parameter is valid for jQuery. More...
 
 _genericCallValue ($jQueryCall, $element='this', $param="", $immediatly=false)
 Execute a generic jQuery call with a value. More...
 
 _genericCallElement ($jQueryCall, $to='this', $element='', $immediatly=false)
 Execute a generic jQuery call with 2 elements. More...
 
 addClass ($element='this', $class='', $immediatly=false)
 add class to element More...
 
 after ($to, $element, $immediatly=false)
 Insert content, specified by the parameter, after each element in the set of matched elements. More...
 
 before ($to, $element, $immediatly=false)
 Insert content, specified by the parameter, before each element in the set of matched elements. More...
 
 attr ($element='this', $attributeName='id', $value="", $immediatly=false)
 Get or set the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element. More...
 
 val ($element='this', $value='', $immediatly=false)
 Get or set the value of the first element in the set of matched elements or set one or more attributes for every matched element. More...
 
 html ($element='this', $value='', $immediatly=false)
 Get or set the html of an attribute for the first element in the set of matched elements. More...
 
 animate ($element='this', $params=array(), $speed='', $extra='', $immediatly=false)
 Outputs a javascript library animate event. More...
 
 append ($to, $element, $immediatly=false)
 Insert content, specified by the parameter $element, to the end of each element in the set of matched elements $to. More...
 
 prepend ($to, $element, $immediatly=false)
 Insert content, specified by the parameter $element, to the beginning of each element in the set of matched elements $to. More...
 
 fadeIn ($element='this', $speed='', $callback='', $immediatly=false)
 Execute a javascript library hide action. More...
 
 fadeOut ($element='this', $speed='', $callback='', $immediatly=false)
 Execute a javascript library hide action. More...
 
 slideUp ($element='this', $speed='', $callback='', $immediatly=false)
 Execute a javascript library slideUp action. More...
 
 removeClass ($element='this', $class='', $immediatly=false)
 Execute a javascript library removeClass action. More...
 
 slideDown ($element='this', $speed='', $callback='', $immediatly=false)
 Execute a javascript library slideDown action. More...
 
 slideToggle ($element='this', $speed='', $callback='', $immediatly=false)
 Execute a javascript library slideToggle action. More...
 
 hide ($element='this', $speed='', $callback='', $immediatly=false)
 Execute a javascript library hide action. More...
 
 toggle ($element='this', $speed='', $callback='', $immediatly=false)
 Execute a javascript library toggle action. More...
 
 toggleClass ($element='this', $class='', $immediatly=false)
 Execute a javascript library toggle class action. More...
 
 trigger ($element='this', $event='click', $immediatly=false)
 Execute all handlers and behaviors attached to the matched elements for the given event. More...
 
 show ($element='this', $speed='', $callback='', $immediatly=false)
 Execute a javascript library show action. More...
 
 sortable ($element, $options=array())
 Creates a jQuery sortable. More...
 
 tablesorter ($table='', $options='')
 Table Sorter Plugin. More...
 
 condition ($condition, $jsCodeIfTrue, $jsCodeIfFalse=null, $immediatly=false)
 Allows to attach a condition. More...
 
 _doJQuery ($element, $jqueryCall, $param="", $jsCallback="", $immediatly=false)
 Call the JQuery method $jqueryCall on $element with parameters $param. More...
 
 doJQuery ($element, $jqueryCall, $param="", $jsCallback="")
 Calls the JQuery callback $someThing on $element with facultative parameter $param. More...
 
 doJQueryDeferred ($element, $jqueryCall, $param="", $jsCallback="")
 Calls the JQuery callback $someThing on $element with facultative parameter $param. More...
 
 _doJQueryOn ($event, $element, $elementToModify, $jqueryCall, $param="", $preventDefault=false, $stopPropagation=false, $jsCallback="", $immediatly=true)
 
 doJQueryOn ($event, $element, $elementToModify, $jqueryCall, $param="", $parameters=array())
 Calls the JQuery callback $jqueryCall on $element with facultative parameter $param in response to an event $event. More...
 
 exec ($js, $immediatly=false)
 Executes the code $js. More...
 
 execAtLast ($js)
 Executes the code $js. More...
 
 execOn ($event, $element, $js, $parameters=array())
 Executes the javascript code $js when $event fires on $element. More...
 
 setJsonToElement ($json, $elementClass="_element", $immediatly=true)
 
 setDraggable ($element, $parameters=[])
 Sets an element draggable (HTML5 drag and drop) More...
 
 asDropZone ($element, $jsCallback="", $parameters=[])
 Declares an element as a drop zone (HTML5 drag and drop) More...
 
 interval ($jsCode, $time, $globalName=null, $immediatly=true)
 Calls a function or evaluates an expression at specified intervals (in milliseconds) More...
 
 clearInterval ($globalName, $immediatly=true)
 Clears an existing interval. More...
 
 counter ($counterSelector, $value=0, $limit=0, $globalName=null, $countDown=true, $immediatly=true)
 Associates a counter to the element designated by $counterSelector Triggers the events counter-start and counter-end on finished with the parameters value and limit. More...
 
 counterOn ($element, $event, $counterSelector, $value=0, $limit=0, $globalName=null, $countDown=true)
 Associates a counter to the element designated by $counterSelector when $event is triggered on $element. More...
 
 activateLink ($target, $property='href', $href=null)
 Activates an element if it is active (add the class active) More...
 
 _activateLink ($target, $property='href', $href=null)
 Returns the javascript code for activate an element if it is active (add the class active) More...
 

Variables

trait JsUtilsActionsTrait