phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
Sidebar.php
Go to the documentation of this file.
1
<?php
2
namespace
Ajax\semantic\components
;
3
4
use
Ajax\JsUtils
;
5
15
class
Sidebar
extends
SimpleSemExtComponent
{
16
17
public
function
__construct
(
JsUtils
$js
= NULL) {
18
parent::__construct(
$js
);
19
$this->uiName =
'sidebar'
;
20
}
21
22
public
function
show
() {
23
return
$this->
addBehavior
(
'show'
);
24
}
25
26
public
function
hide
() {
27
return
$this->
addBehavior
(
'hide'
);
28
}
29
30
public
function
toogle
() {
31
return
$this->
addBehavior
(
'toggle'
);
32
}
33
37
public
function
pushPage
() {
38
return
$this->
addBehavior
(
'push page'
);
39
}
40
44
public
function
pullPage
() {
45
return
$this->
addBehavior
(
'pull page'
);
46
}
47
48
public
function
setContext
($value) {
49
$this->params[
'context'
] = $value;
50
return
$this;
51
}
52
53
public
function
setExclusive
($value =
true
) {
54
$this->params[
'exclusive'
] =
true
;
55
return
$this;
56
}
57
58
public
function
setClosable
($value =
true
) {
59
$this->params[
'closable'
] = $value;
60
return
$this;
61
}
62
63
public
function
setDimPage
($value =
true
) {
64
$this->params[
'dimPage'
] = $value;
65
return
$this;
66
}
67
68
public
function
setScrollLock
($value =
false
) {
69
$this->params[
'scrollLock'
] = $value;
70
return
$this;
71
}
72
73
public
function
setReturnScroll
($value =
false
) {
74
$this->params[
'returnScroll'
] = $value;
75
return
$this;
76
}
77
78
public
function
setOnVisible
($jsCode) {
79
$this->
addComponentEvent
(
'onVisible'
, $jsCode);
80
}
81
82
public
function
setOnShow
($jsCode) {
83
$this->
addComponentEvent
(
'onShow'
, $jsCode);
84
return
$this;
85
}
86
87
public
function
setOnChange
($jsCode) {
88
$this->
addComponentEvent
(
'onChange'
, $jsCode);
89
return
$this;
90
}
91
92
public
function
setOnHide
($jsCode) {
93
$this->
addComponentEvent
(
'onHide'
, $jsCode);
94
return
$this;
95
}
96
97
public
function
setOnHidden
($jsCode) {
98
$this->
addComponentEvent
(
'onHidden'
, $jsCode);
99
return
$this;
100
}
101
}
Ajax\JsUtils
JQuery PHP library.
Definition
JsUtils.php:23
Ajax\common\components\BaseComponent\$js
$js
Definition
BaseComponent.php:20
Ajax\semantic\components\Sidebar
Ajax\semantic\components$Sidebar This class is part of phpMv-ui.
Definition
Sidebar.php:15
Ajax\semantic\components\Sidebar\setClosable
setClosable($value=true)
Definition
Sidebar.php:58
Ajax\semantic\components\Sidebar\setOnShow
setOnShow($jsCode)
Definition
Sidebar.php:82
Ajax\semantic\components\Sidebar\setScrollLock
setScrollLock($value=false)
Definition
Sidebar.php:68
Ajax\semantic\components\Sidebar\setOnVisible
setOnVisible($jsCode)
Definition
Sidebar.php:78
Ajax\semantic\components\Sidebar\show
show()
Definition
Sidebar.php:22
Ajax\semantic\components\Sidebar\setReturnScroll
setReturnScroll($value=false)
Definition
Sidebar.php:73
Ajax\semantic\components\Sidebar\setOnHidden
setOnHidden($jsCode)
Definition
Sidebar.php:97
Ajax\semantic\components\Sidebar\setOnChange
setOnChange($jsCode)
Definition
Sidebar.php:87
Ajax\semantic\components\Sidebar\pullPage
pullPage()
Returns page content to original position.
Definition
Sidebar.php:44
Ajax\semantic\components\Sidebar\toogle
toogle()
Definition
Sidebar.php:30
Ajax\semantic\components\Sidebar\setContext
setContext($value)
Definition
Sidebar.php:48
Ajax\semantic\components\Sidebar\__construct
__construct(JsUtils $js=NULL)
Definition
Sidebar.php:17
Ajax\semantic\components\Sidebar\setDimPage
setDimPage($value=true)
Definition
Sidebar.php:63
Ajax\semantic\components\Sidebar\setExclusive
setExclusive($value=true)
Definition
Sidebar.php:53
Ajax\semantic\components\Sidebar\setOnHide
setOnHide($jsCode)
Definition
Sidebar.php:92
Ajax\semantic\components\Sidebar\hide
hide()
Definition
Sidebar.php:26
Ajax\semantic\components\Sidebar\pushPage
pushPage()
Pushes page content to be visible alongside sidebar.
Definition
Sidebar.php:37
Ajax\semantic\components\SimpleSemExtComponent
Definition
SimpleSemExtComponent.php:8
Ajax\semantic\components\SimpleSemExtComponent\addComponentEvent
addComponentEvent($event, $jsCode)
Definition
SimpleSemExtComponent.php:46
Ajax\semantic\components\SimpleSemExtComponent\addBehavior
addBehavior($name)
Definition
SimpleSemExtComponent.php:15
Ajax\semantic\components
Definition
Accordion.php:3
Ajax
semantic
components
Sidebar.php
Generated on Sun Dec 10 2023 16:16:00 for
phpMv-UI
by
doxygen
1.9.8