phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
|
Public Member Functions | |
addEvent ($event, $jsCode, $stopPropagation=false, $preventDefault=false) | |
trigger ($event, $params="[]") | |
jsTrigger ($event, $params="[this]") | |
_addEvent ($event, $jsCode) | |
on ($event, $jsCode, $stopPropagation=false, $preventDefault=false) | |
onClick ($jsCode, $stopPropagation=false, $preventDefault=true) | |
setClick ($jsCode) | |
onCreate ($jsCode) | |
addEventsOnRun (JsUtils $js=NULL) | |
_ajaxOn ($operation, $event, $url, $responseElement="", $parameters=array()) | |
getOn ($event, $url, $responseElement="", $parameters=array()) | |
Performs a get to $url on the event $event on $element and display it in $responseElement. | |
getOnClick ($url, $responseElement="", $parameters=array()) | |
Performs a get to $url on the click event on $element and display it in $responseElement. | |
postOn ($event, $url, $params="{}", $responseElement="", $parameters=array()) | |
Performs a post to $url on the event $event on $element and display it in $responseElement. | |
postOnClick ($url, $params="{}", $responseElement="", $parameters=array()) | |
Performs a post to $url on the click event on $element and display it in $responseElement. | |
postFormOn ($event, $url, $form, $responseElement="", $parameters=array()) | |
Performs a post form with ajax. | |
postFormOnClick ($url, $form, $responseElement="", $parameters=array()) | |
Performs a post form with ajax on click. | |
jsDoJquery ($jqueryCall, $param="") | |
executeOnRun ($jsCode) | |
jsHtml ($content="") | |
jsShow () | |
jsHide () | |
jsToggle ($value) | |
getEvents () | |
Protected Member Functions | |
_eventsOnCreate (JsUtils $js=NULL) | |
Protected Attributes | |
$_events =array () | |
Definition at line 14 of file BaseHtmlEventsTrait.php.
_addEvent | ( | $event, | |
$jsCode | |||
) |
string | $event | |
string | AjaxCall | $jsCode |
Reimplemented in HtmlPagination.
Definition at line 48 of file BaseHtmlEventsTrait.php.
_ajaxOn | ( | $operation, | |
$event, | |||
$url, | |||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
string | $operation | http method get, post, postForm or json |
string | $event | the event that triggers the request |
string | $url | The url of the request |
string | $responseElement | The selector of the HTML element displaying the answer |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>null,"headers"=>null,"historize"=>false) |
Reimplemented in HtmlBreadcrumbs, and HtmlBreadcrumb.
Definition at line 136 of file BaseHtmlEventsTrait.php.
|
protected |
Definition at line 116 of file BaseHtmlEventsTrait.php.
addEvent | ( | $event, | |
$jsCode, | |||
$stopPropagation = false , |
|||
$preventDefault = false |
|||
) |
string | $event | |
string | AjaxCall | $jsCode | |
boolean | $stopPropagation | |
boolean | $preventDefault |
Definition at line 25 of file BaseHtmlEventsTrait.php.
addEventsOnRun | ( | JsUtils | $js = NULL | ) |
Definition at line 91 of file BaseHtmlEventsTrait.php.
executeOnRun | ( | $jsCode | ) |
Definition at line 233 of file BaseHtmlEventsTrait.php.
getEvents | ( | ) |
Definition at line 255 of file BaseHtmlEventsTrait.php.
getOn | ( | $event, | |
$url, | |||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a get to $url on the event $event on $element and display it in $responseElement.
string | $event | the event that triggers the get request |
string | $url | The url of the request |
string | $responseElement | The selector of the HTML element displaying the answer |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>null,"headers"=>null,"historize"=>false) |
Definition at line 152 of file BaseHtmlEventsTrait.php.
getOnClick | ( | $url, | |
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a get to $url on the click event on $element and display it in $responseElement.
string | $url | The url of the request |
string | $responseElement | The selector of the HTML element displaying the answer |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>null,"headers"=>null,"historize"=>false) |
Definition at line 164 of file BaseHtmlEventsTrait.php.
jsDoJquery | ( | $jqueryCall, | |
$param = "" |
|||
) |
Definition at line 229 of file BaseHtmlEventsTrait.php.
jsHide | ( | ) |
Reimplemented in HtmlModal, and HtmlModal.
Definition at line 245 of file BaseHtmlEventsTrait.php.
jsHtml | ( | $content = "" | ) |
Definition at line 237 of file BaseHtmlEventsTrait.php.
jsShow | ( | ) |
Reimplemented in HtmlModal, and HtmlDimmer.
Definition at line 241 of file BaseHtmlEventsTrait.php.
jsToggle | ( | $value | ) |
Definition at line 249 of file BaseHtmlEventsTrait.php.
jsTrigger | ( | $event, | |
$params = "[this]" |
|||
) |
Definition at line 39 of file BaseHtmlEventsTrait.php.
on | ( | $event, | |
$jsCode, | |||
$stopPropagation = false , |
|||
$preventDefault = false |
|||
) |
string | $event | |
string | $jsCode | |
boolean | $stopPropagation | |
boolean | $preventDefault |
Reimplemented in HtmlBreadcrumbs, HtmlButtongroups, HtmlDropdown, HtmlTabs, HtmlBreadcrumb, and HtmlButtonGroups.
Definition at line 70 of file BaseHtmlEventsTrait.php.
onClick | ( | $jsCode, | |
$stopPropagation = false , |
|||
$preventDefault = true |
|||
) |
Definition at line 74 of file BaseHtmlEventsTrait.php.
onCreate | ( | $jsCode | ) |
Definition at line 82 of file BaseHtmlEventsTrait.php.
postFormOn | ( | $event, | |
$url, | |||
$form, | |||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a post form with ajax.
string | $event | the event that triggers the post request |
string | $url | The url of the request |
string | $form | The form HTML id |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false) |
Definition at line 212 of file BaseHtmlEventsTrait.php.
postFormOnClick | ( | $url, | |
$form, | |||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a post form with ajax on click.
string | $url | The url of the request |
string | $form | The form HTML id |
string | $responseElement | selector of the HTML element displaying the answer |
array | $parameters | default : array("params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>NULL,"headers"=>null,"historize"=>false) |
Definition at line 225 of file BaseHtmlEventsTrait.php.
postOn | ( | $event, | |
$url, | |||
$params = "{}" , |
|||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a post to $url on the event $event on $element and display it in $responseElement.
string | $event | the event that triggers the post request |
string | $url | The url of the request |
string | $params | the request parameters in JSON format |
string | $responseElement | The selector of the HTML element displaying the answer |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>null,"headers"=>null,"historize"=>false) |
Definition at line 178 of file BaseHtmlEventsTrait.php.
postOnClick | ( | $url, | |
$params = "{}" , |
|||
$responseElement = "" , |
|||
$parameters = array() |
|||
) |
Performs a post to $url on the click event on $element and display it in $responseElement.
string | $url | The url of the request |
string | $params | the request parameters in JSON format |
string | $responseElement | The selector of the HTML element displaying the answer |
array | $parameters | default : array("preventDefault"=>true,"stopPropagation"=>true,"params"=>"{}","jsCallback"=>NULL,"attr"=>"id","hasLoader"=>true,"ajaxLoader"=>null,"immediatly"=>true,"jqueryDone"=>"html","ajaxTransition"=>null,"jsCondition"=>null,"headers"=>null,"historize"=>false) |
Definition at line 199 of file BaseHtmlEventsTrait.php.
setClick | ( | $jsCode | ) |
Definition at line 78 of file BaseHtmlEventsTrait.php.
trigger | ( | $event, | |
$params = "[]" |
|||
) |
Reimplemented in DataTable.
Definition at line 35 of file BaseHtmlEventsTrait.php.
|
protected |
Definition at line 16 of file BaseHtmlEventsTrait.php.