Overview

Packages

  • Actions
  • Codegen
  • Controls
    • Base
  • DatabaseAdapters
  • Events
  • None
  • Sessions
  • Tests

Classes

  • QBackspaceKeyEvent
  • QBlurEvent
  • QCellClickEvent
  • QChangeEvent
  • QClickEvent
  • QContextMenuEvent
  • QDoubleClickEvent
  • QDownArrowKeyEvent
  • QDragDropEvent
  • QEnterKeyEvent
  • QEscapeKeyEvent
  • QEvent
  • QFocusEvent
  • QFocusInEvent
  • QFocusOutEvent
  • QInputEvent
  • QJqUiEvent
  • QJqUiPropertyEvent
  • QKeyDownEvent
  • QKeyPressEvent
  • QKeyUpEvent
  • QMouseDownEvent
  • QMouseEnterEvent
  • QMouseLeaveEvent
  • QMouseMoveEvent
  • QMouseOutEvent
  • QMouseOverEvent
  • QMouseUpEvent
  • QOnEvent
  • QSelectEvent
  • QTabKeyEvent
  • QUpArrowKeyEvent
  • Overview
  • Package
  • Class

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
Extended by QEvent
Extended by 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
Methods summary
public
# __construct( integer $strEventName, integer $intDelay = 0, string $strCondition = null, string $strSelector = null )

Constructor

Constructor

Parameters

$strEventName
$intDelay
$strCondition
$strSelector

Throws

Exception|QCallerException

Overrides

QEvent::__construct()
public integer|mixed|null|string
# __get( string $strName )

PHP Magic function implementation

PHP Magic function implementation

Parameters

$strName

Returns

integer|mixed|null|string

Throws

Exception|QCallerException

Overrides

QEvent::__get()
Methods inherited from QBaseClass
OverrideAttributes(), __call(), __set()
Properties summary
protected string $strEventName

Name of the event

Name of the event

#
Properties inherited from QEvent
$intDelay, $strCondition, $strSelector
Magic properties inherited from QEvent
$Condition, $Delay, $EventName, $JsReturnParam, $Selector
API documentation generated by ApiGen