phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
Visibility.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\semantic\components
;
4
5
use
Ajax\JsUtils
;
6
13
class
Visibility
extends
SimpleSemExtComponent
{
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
}
Ajax\JsUtils
JQuery PHP library.
Definition
JsUtils.php:23
Ajax\common\components\BaseComponent\$js
$js
Definition
BaseComponent.php:20
Ajax\common\components\BaseComponent\setParam
setParam($key, $value)
Definition
BaseComponent.php:35
Ajax\semantic\components\SimpleSemExtComponent
Definition
SimpleSemExtComponent.php:8
Ajax\semantic\components\Visibility
Visibility provides a set of callbacks for when a content appears in the viewport.
Definition
Visibility.php:13
Ajax\semantic\components\Visibility\setOnTopVisible
setOnTopVisible($value)
Definition
Visibility.php:29
Ajax\semantic\components\Visibility\setOnce
setOnce($value=false)
Definition
Visibility.php:21
Ajax\semantic\components\Visibility\setOnBottomVisible
setOnBottomVisible($value)
Definition
Visibility.php:33
Ajax\semantic\components\Visibility\setObserveChanges
setObserveChanges($value=true)
Definition
Visibility.php:25
Ajax\semantic\components\Visibility\__construct
__construct(JsUtils $js)
Definition
Visibility.php:15
Ajax\semantic\components
Definition
Accordion.php:3
Ajax
semantic
components
Visibility.php
Generated on Sun Dec 10 2023 16:16:01 for
phpMv-UI
by
doxygen
1.9.8