Class QOnEvent
a custom event with event delegation With this event you can delegate any jquery event of child controls or any html element to a parent. By using the selector you can limit the event sources this event gets triggered from. You can use a css class (or any jquery selector) for $strSelector. Example ( new QJsDelegateEvent("click",".remove",new QAjaxControlAction( ... )); )
This event can help you reduce the produced javascript to a minimum. One positive side effect is that this event will also work for html child elements added in the future (after the event was created).
- QBaseClass
- QEvent
- QOnEvent
Package: Events
Deprectated: QEvent now has the strSelector at the end of its constructor
Param: string $strEventName the name of the event i.e.: "click"
Param: string $strSelector i.e.: "#myselector" ==> results in: $('#myControl').on("myevent","#myselector",function()...
Located at includes/base_controls/_events.inc.php
Deprectated: QEvent now has the strSelector at the end of its constructor
Param: string $strEventName the name of the event i.e.: "click"
Param: string $strSelector i.e.: "#myselector" ==> results in: $('#myControl').on("myevent","#myselector",function()...
Located at includes/base_controls/_events.inc.php
public
|
#
__construct( integer $strEventName, integer $intDelay = 0, string $strCondition = null, string $strSelector = null )
Constructor |
public
integer|mixed|null|string
|
OverrideAttributes(),
__call(),
__set()
|
protected
string
|
$strEventName
Name of the event |
$intDelay,
$strCondition,
$strSelector
|
$Condition,
$Delay,
$EventName,
$JsReturnParam,
$Selector
|