Ajax/ui/components/Accordion.php 1 location
|
@@ 130-138 (lines=9) @@
|
127 |
|
* @param String $value default : { "header": "ui-icon-triangle-1-e", "activeHeader": "ui-icon-triangle-1-s" } |
128 |
|
* @return $this |
129 |
|
*/ |
130 |
|
public function setIcons($value) { |
131 |
|
if (is_string($value)) { |
132 |
|
if (Text::startsWith($value, "{")) |
133 |
|
; |
134 |
|
$value="%".$value."%"; |
135 |
|
} |
136 |
|
$this->setParam("icons", $value); |
137 |
|
return $this; |
138 |
|
} |
139 |
|
|
140 |
|
/** |
141 |
|
* Triggered after a panel has been activated (after animation completes). |
Ajax/ui/components/Button.php 1 location
|
@@ 39-46 (lines=8) @@
|
36 |
|
* @param String $value default : { primary: null, secondary: null } |
37 |
|
* @return $this |
38 |
|
*/ |
39 |
|
public function setIcons($value) { |
40 |
|
if (is_string($value)) { |
41 |
|
if (Text::startsWith($value, "{")) |
42 |
|
; |
43 |
|
$value="%".$value."%"; |
44 |
|
} |
45 |
|
return $this->setParam("icons", $value); |
46 |
|
} |
47 |
|
|
48 |
|
/** |
49 |
|
* Whether to show the label. |