phpMv  -UI toolkit 2.2.5
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
JsUtilsEventsTrait Class Reference
+ Inheritance diagram for JsUtilsEventsTrait:

Public Member Functions

 _add_event ($element, $js, $event, $preventDefault=false, $stopPropagation=false, $immediatly=true)
 
 blur ($element='this', $js='')
 Outputs a javascript library blur event. More...
 
 change ($element='this', $js='', $preventDefault=false, $stopPropagation=false)
 Outputs a javascript library change event. More...
 
 click ($element='this', $js='', $ret_false=TRUE, $preventDefault=false, $stopPropagation=false)
 Outputs a javascript library click event. More...
 
 contextmenu ($element='this', $js='')
 Outputs a javascript library contextmenu event. More...
 
 dblclick ($element='this', $js='')
 Outputs a javascript library dblclick event. More...
 
 error ($element='this', $js='')
 Outputs a javascript library error event. More...
 
 focus ($element='this', $js='')
 Outputs a javascript library focus event. More...
 
 hover ($element='this', $over, $out)
 Outputs a javascript library hover event. More...
 
 keydown ($element='this', $js='')
 Outputs a javascript library keydown event. More...
 
 keypress ($element='this', $js='')
 Outputs a javascript library keypress event. More...
 
 keyup ($element='this', $js='')
 Outputs a javascript library keydown event. More...
 
 load ($element='this', $js='')
 Outputs a javascript library load event. More...
 
 mousedown ($element='this', $js='')
 Outputs a javascript library mousedown event. More...
 
 mouseout ($element='this', $js='')
 Outputs a javascript library mouseout event. More...
 
 mouseover ($element='this', $js='')
 Outputs a javascript library mouseover event. More...
 
 mouseup ($element='this', $js='')
 Outputs a javascript library mouseup event. More...
 
 unload ($element='this', $js='')
 Outputs a javascript library unload event. More...
 
 resize ($element='this', $js='')
 Outputs a javascript library resize event. More...
 
 scroll ($element='this', $js='')
 Outputs a javascript library scroll event. More...
 

Protected Attributes

 $jquery_events
 

Detailed Description

Definition at line 11 of file JsUtilsEventsTrait.php.

Member Function Documentation

◆ _add_event()

_add_event (   $element,
  $js,
  $event,
  $preventDefault = false,
  $stopPropagation = false,
  $immediatly = true 
)
abstract

◆ blur()

blur (   $element = 'this',
  $js = '' 
)

Outputs a javascript library blur event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 28 of file JsUtilsEventsTrait.php.

◆ change()

change (   $element = 'this',
  $js = '',
  $preventDefault = false,
  $stopPropagation = false 
)

Outputs a javascript library change event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
Returns
string

Definition at line 41 of file JsUtilsEventsTrait.php.

◆ click()

click (   $element = 'this',
  $js = '',
  $ret_false = TRUE,
  $preventDefault = false,
  $stopPropagation = false 
)

Outputs a javascript library click event.

Parameters
string$elementelement to attach the event to
string | array$jscode to execute
boolean$ret_falseor not to return false
boolean$preventDefault
boolean$stopPropagation
Returns
string

Definition at line 55 of file JsUtilsEventsTrait.php.

◆ contextmenu()

contextmenu (   $element = 'this',
  $js = '' 
)

Outputs a javascript library contextmenu event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 76 of file JsUtilsEventsTrait.php.

◆ dblclick()

dblclick (   $element = 'this',
  $js = '' 
)

Outputs a javascript library dblclick event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 88 of file JsUtilsEventsTrait.php.

◆ error()

error (   $element = 'this',
  $js = '' 
)

Outputs a javascript library error event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 99 of file JsUtilsEventsTrait.php.

◆ focus()

focus (   $element = 'this',
  $js = '' 
)

Outputs a javascript library focus event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 110 of file JsUtilsEventsTrait.php.

◆ hover()

hover (   $element = 'this',
  $over,
  $out 
)

Outputs a javascript library hover event.

Parameters
string$element
string$overcode for mouse over
string$outcode for mouse out
Returns
string

Definition at line 122 of file JsUtilsEventsTrait.php.

◆ keydown()

keydown (   $element = 'this',
  $js = '' 
)

Outputs a javascript library keydown event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 135 of file JsUtilsEventsTrait.php.

◆ keypress()

keypress (   $element = 'this',
  $js = '' 
)

Outputs a javascript library keypress event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 146 of file JsUtilsEventsTrait.php.

◆ keyup()

keyup (   $element = 'this',
  $js = '' 
)

Outputs a javascript library keydown event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 157 of file JsUtilsEventsTrait.php.

◆ load()

load (   $element = 'this',
  $js = '' 
)

Outputs a javascript library load event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 168 of file JsUtilsEventsTrait.php.

◆ mousedown()

mousedown (   $element = 'this',
  $js = '' 
)

Outputs a javascript library mousedown event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 179 of file JsUtilsEventsTrait.php.

◆ mouseout()

mouseout (   $element = 'this',
  $js = '' 
)

Outputs a javascript library mouseout event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 190 of file JsUtilsEventsTrait.php.

◆ mouseover()

mouseover (   $element = 'this',
  $js = '' 
)

Outputs a javascript library mouseover event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 200 of file JsUtilsEventsTrait.php.

◆ mouseup()

mouseup (   $element = 'this',
  $js = '' 
)

Outputs a javascript library mouseup event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 211 of file JsUtilsEventsTrait.php.

◆ resize()

resize (   $element = 'this',
  $js = '' 
)

Outputs a javascript library resize event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 235 of file JsUtilsEventsTrait.php.

◆ scroll()

scroll (   $element = 'this',
  $js = '' 
)

Outputs a javascript library scroll event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 246 of file JsUtilsEventsTrait.php.

◆ unload()

unload (   $element = 'this',
  $js = '' 
)

Outputs a javascript library unload event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
Returns
string

Definition at line 223 of file JsUtilsEventsTrait.php.

Field Documentation

◆ $jquery_events

$jquery_events
protected
Initial value:
=array (
"bind","blur","change","click","dblclick","delegate","die","error","focus","focusin","focusout","hover","keydown","keypress","keyup","live","load","mousedown","mousseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","off","on","one","ready","resize","scroll","select","submit","toggle","trigger","triggerHandler","undind","undelegate","unload"
)

Definition at line 14 of file JsUtilsEventsTrait.php.


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