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

Public Member Functions

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

Protected Attributes

 $jquery_events
 

Detailed Description

Definition at line 12 of file JsUtilsEventsTrait.php.

Member Function Documentation

◆ _add_event()

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

Reimplemented in JsUtils.

◆ blur()

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

Outputs a javascript library blur event.

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

Definition at line 65 of file JsUtilsEventsTrait.php.

◆ change()

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

Outputs a javascript library change event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 81 of file JsUtilsEventsTrait.php.

◆ click()

click (   $element = 'this',
  $js = '',
  $ret_false = TRUE,
  $preventDefault = false,
  $stopPropagation = false,
  $listenerOn = 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
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 99 of file JsUtilsEventsTrait.php.

◆ contextmenu()

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

Outputs a javascript library contextmenu event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 125 of file JsUtilsEventsTrait.php.

◆ dblclick()

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

Outputs a javascript library dblclick event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 141 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 154 of file JsUtilsEventsTrait.php.

◆ focus()

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

Outputs a javascript library focus event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 170 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 184 of file JsUtilsEventsTrait.php.

◆ keydown()

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

Outputs a javascript library keydown event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 202 of file JsUtilsEventsTrait.php.

◆ keypress()

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

Outputs a javascript library keypress event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 218 of file JsUtilsEventsTrait.php.

◆ keyup()

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

Outputs a javascript library keydown event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 234 of file JsUtilsEventsTrait.php.

◆ load()

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

Outputs a javascript library load event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 250 of file JsUtilsEventsTrait.php.

◆ mousedown()

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

Outputs a javascript library mousedown event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 266 of file JsUtilsEventsTrait.php.

◆ mouseenter()

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

Outputs a javascript library mouseenter event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 314 of file JsUtilsEventsTrait.php.

◆ mouseleave()

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

Outputs a javascript library mouseleave event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 298 of file JsUtilsEventsTrait.php.

◆ mouseout()

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

Outputs a javascript library mouseout event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 282 of file JsUtilsEventsTrait.php.

◆ mouseover()

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

Outputs a javascript library mouseover event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 330 of file JsUtilsEventsTrait.php.

◆ mouseup()

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

Outputs a javascript library mouseup event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 346 of file JsUtilsEventsTrait.php.

◆ resize()

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

Outputs a javascript library resize event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 379 of file JsUtilsEventsTrait.php.

◆ scroll()

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

Outputs a javascript library scroll event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 396 of file JsUtilsEventsTrait.php.

◆ unload()

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

Outputs a javascript library unload event.

Parameters
string$elementelement to attach the event to
string$jscode to execute
boolean$preventDefault
boolean$stopPropagation
boolean | string$listenerOnuse a selector for a delegated event handler
Returns
string

Definition at line 362 of file JsUtilsEventsTrait.php.

Field Documentation

◆ $jquery_events

$jquery_events
protected

Definition at line 13 of file JsUtilsEventsTrait.php.


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