phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlNavElement.php
Go to the documentation of this file.
1<?php
3
5
15 protected $root;
16
20 protected $attr;
21
22
24 parent::__construct($identifier,$tagName);
25 $this->root="";
26 $this->attr="data-ajax";
27 }
28
35 public function autoGetOnClick($targetSelector){
36 return $this->getOnClick($this->root, $targetSelector,array("attr"=>$this->attr));
37 }
38
39 public function contentAsString(){
40 return implode("", $this->content);
41 }
42}
Bs class for navigation elements : Breadcrumbs and Pagination.
autoGetOnClick($targetSelector)
Associate an ajax get to the elements, displayed in $targetSelector $this->attr member is used to bui...
getOnClick($url, $responseElement="", $parameters=array())
Performs a get to $url on the click event on $element and display it in $responseElement.