phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlNavElement.php
Go to the documentation of this file.
1 <?php
3 
5 
11 abstract class HtmlNavElement extends HtmlBsDoubleElement {
12  use NavElementTrait;
16  protected $root;
17 
21  protected $attr;
22 
23 
24  public function __construct($identifier,$tagName){
25  parent::__construct($identifier,$tagName);
26  $this->root="";
27  $this->attr="data-ajax";
28  }
29 
36  public function autoGetOnClick($targetSelector){
37  return $this->getOnClick($this->root, $targetSelector,array("attr"=>$this->attr));
38  }
39 
40  public function contentAsString(){
41  return implode("", $this->content);
42  }
43 }
getOnClick($url, $responseElement="", $parameters=array())
Performs a get to $url on the click event on $element and display it in $responseElement.
autoGetOnClick($targetSelector)
Associate an ajax get to the elements, displayed in $targetSelector $this->attr member is used to bui...
Bs class for navigation elements : Breadcrumbs and Pagination.
attr($element='this', $attributeName='id', $value="", $immediatly=false)
Get or set the value of an attribute for the first element in the set of matched elements or set one ...