File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Ajax/semantic/html/elements/html5 Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 11<?php
2-
32namespace Ajax \semantic \html \elements \html5 ;
43
54use Ajax \common \html \HtmlDoubleElement ;
65use Ajax \common \html \HtmlCollection ;
76
8- class HtmlDatalist extends HtmlCollection{
9-
10- public function __construct ($ identifier ){
11- parent ::__construct ($ identifier ,"datalist " );
7+ class HtmlDatalist extends HtmlCollection {
8+
9+ public function __construct ($ identifier ) {
10+ parent ::__construct ($ identifier , "datalist " );
1211 }
13-
12+
1413 protected function createItem ($ value ) {
15- $ elm = new HtmlDoubleElement ("" ,"option " );
16- $ elm ->setProperty ("value " , $ value-> getContent () );
14+ $ elm = new HtmlDoubleElement ("" , "option " );
15+ $ elm ->setProperty ("value " , $ value );
1716 $ elm ->setContent ($ value );
1817 return $ elm ;
1918 }
20-
21- protected function createCondition ($ value ){
19+
20+ protected function createCondition ($ value ) {
2221 return true ;
2322 }
2423}
You can’t perform that action at this time.
0 commit comments