phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Splitbutton.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\bootstrap\components
;
4
5
class
Splitbutton
extends
Dropdown
{
6
7
/*
8
* (non-PHPdoc)
9
* @see \Ajax\common\SimpleComponent::compileEvents()
10
*/
11
protected
function
compileEvents
() {
12
foreach
( $this->events as $event => $jsCode ) {
13
if
($event===
"buttonClick"
) {
14
$this->jquery_code_for_compile []=
"$( \"#split-"
.preg_replace(
'/[^a-zA-Z0-9\-.]/s'
,
''
, $this->attachTo).
"\" ).on(\"click\" , function( event, data ) {"
.$jsCode.
"});"
;
15
}
else
{
16
$this->jquery_code_for_compile []=
"$( \""
.$this->attachTo.
"\" ).on(\""
.$event.
"\" , function( event, data ) {"
.$jsCode.
"});"
;
17
}
18
}
19
}
20
}
Ajax\bootstrap\components
Definition:
Carousel.php:3
Ajax\bootstrap\components\Splitbutton
Definition:
Splitbutton.php:5
Ajax\bootstrap\components\Splitbutton\compileEvents
compileEvents()
Definition:
Splitbutton.php:11
Ajax\bootstrap\components\Dropdown
Composant Twitter Bootstrap Dropdown.
Definition:
Dropdown.php:13
Ajax
bootstrap
components
Splitbutton.php
Generated on Thu Sep 19 2024 23:26:03 for
phpMv-UI
by
doxygen
1.8.13