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 
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 }
Composant Twitter Bootstrap Dropdown.
Definition: Dropdown.php:13