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 1
1
<?php
2
-
3
2
namespace Ajax \semantic \html \elements \html5 ;
4
3
5
4
use Ajax \common \html \HtmlDoubleElement ;
6
5
use Ajax \common \html \HtmlCollection ;
7
6
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 " );
12
11
}
13
-
12
+
14
13
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 );
17
16
$ elm ->setContent ($ value );
18
17
return $ elm ;
19
18
}
20
-
21
- protected function createCondition ($ value ){
19
+
20
+ protected function createCondition ($ value ) {
22
21
return true ;
23
22
}
24
23
}
You can’t perform that action at this time.
0 commit comments