File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1111use Ajax \semantic \html \base \constants \Direction ;
1212use Ajax \JsUtils ;
1313use Ajax \semantic \html \base \constants \Side ;
14+ use Ajax \common \html \html5 \HtmlList ;
1415
1516/**
1617 * Base class for Semantic double elements
@@ -166,6 +167,13 @@ public function run(JsUtils $js) {
166167 return $ this ->_bsComponent ;
167168 }
168169
170+ public function addList ($ elements ,$ ordered =false ){
171+ $ list =new HtmlList ("list- " .$ this ->identifier ,$ elements );
172+ $ list ->setOrdered ($ ordered );
173+ $ list ->setClass ("ui list " );
174+ $ this ->addContent ($ list );
175+ }
176+
169177 /*
170178 * public function __call($name, $arguments){
171179 * $type=\substr($name, 0,3);
Original file line number Diff line number Diff line change 33namespace Ajax \semantic \html \collections ;
44
55use Ajax \semantic \html \base \HtmlSemDoubleElement ;
6- use Ajax \common \html \html5 \HtmlList ;
76use Ajax \semantic \html \elements \HtmlIcon ;
87use Ajax \JsUtils ;
98use Ajax \semantic \html \base \constants \Style ;
@@ -47,13 +46,6 @@ public function setHeader($header){
4746 return $ this ->addHeader ($ header );
4847 }
4948
50- public function addList ($ elements ,$ ordered =false ){
51- $ list =new HtmlList ("list- " .$ this ->identifier ,$ elements );
52- $ list ->setOrdered ($ ordered );
53- $ list ->setClass ("ui list " );
54- $ this ->addContent ($ list );
55- }
56-
5749 public function setIcon ($ icon ){
5850 $ this ->addToProperty ("class " , "icon " );
5951 $ this ->wrapContent ("<div class='content'> " ,"</div> " );
You can’t perform that action at this time.
0 commit comments