15 abstract public function getOn($event, $url, $responseElement =
"", $parameters = array());
87 public function onRow($event, $jsCode, $stopPropagation =
false, $preventDefault =
false) {
88 return $this->_self->addEvent($event .
"{{tbody tr}}", $jsCode, $stopPropagation, $preventDefault);
91 public function getOnRow($event, $url, $responseElement =
"", $parameters = array()) {
92 $activeClass = $this->_self->getActiveRowClass();
93 $jsCondition =
'(!$(this).closest("tr").hasClass("' . $activeClass .
'") || event.target.tagName === "TR")';
94 if (isset($parameters[
'jsCondition'])) {
95 $jsCondition =
'(' . $parameters[
'jsCondition'] .
' && ' . $jsCondition .
')';
97 $parameters = \array_merge($parameters, [
98 "stopPropagation" =>
false,
99 "preventDefault" =>
false,
100 "jsCondition" => $jsCondition
102 $selector =
"tbody tr";
103 if (isset($parameters[
"selector"])) {
104 $selector = $parameters[
"selector"];
106 return $this->_self->getOn($event .
"{{" . $selector .
"}}", $url, $responseElement, $parameters);