phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Visibility.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use Ajax\JsUtils;
6 
14 
15  public function __construct(JsUtils $js) {
16  parent::__construct($js);
17  $this->uiName="visibility";
18  $this->params=["once"=>false,"observeChanges"=>true];
19  }
20 
21  public function setOnce($value=false) {
22  return $this->setParam("once", $value);
23  }
24 
25  public function setObserveChanges($value=true) {
26  return $this->setParam("observeChanges", $value);
27  }
28 
29  public function setOnTopVisible($value) {
30  $this->params["onTopVisible"]="%function(){".$value."}%";
31  }
32 
33  public function setOnBottomVisible($value) {
34  $this->params["onBottomVisible"]="%function(){".$value."}%";
35  }
36 }
JQuery PHP library.
Definition: JsUtils.php:23
Visibility provides a set of callbacks for when a content appears in the viewport.
Definition: Visibility.php:13