We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b2527 commit 216091eCopy full SHA for 216091e
Ajax/Semantic.php
@@ -16,6 +16,8 @@ class Semantic extends BaseGui {
16
17
private $language;
18
19
+ private $style;
20
+
21
public function __construct($autoCompile=true) {
22
parent::__construct($autoCompile);
23
}
@@ -31,4 +33,26 @@ public function setLanguage($language){
31
33
32
34
35
36
37
+ public function compile($internal = false) {
38
+ if($this->style!=null){
39
+ parent::compile($internal);
40
+ }else {
41
+ if ($internal === false && $this->autoCompile === true)
42
+ throw new \Exception("Impossible to compile if autoCompile is set to 'true'");
43
+ $style=$this->style;
44
+ foreach ($this->components as $component) {
45
+ $component->addToProperty("class", $style);
46
+ $component->compile();
47
+ }
48
49
50
51
+ public function setStyle($style='inverted'){
52
+ $this->style=$style;
53
54
55
+ public function getStyle(){
56
+ return $this->style;
57
58
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments