File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ public function view()
1616 type="text"
1717 class="form-control"
1818 placeholder="What needs to be done?"
19- aria-describedby="button-add">
19+ aria-describedby="button-add" ' .
20+ $ this ->inputValue ('task ' )
21+ .'>
2022 <button
2123 type="button"
2224 class="btn btn-primary">
Original file line number Diff line number Diff line change @@ -135,6 +135,15 @@ public function button()
135135 return new Button ;
136136 }
137137
138+ public function inputValue ($ name )
139+ {
140+ $ id = uniqid ();
141+
142+ $ this ->scope ->addVariable ($ name )->setCallback ($ id , 'function (el, value) { el.value = value } ' );
143+
144+ return ' id=" ' .$ id .'" ' ;
145+ }
146+
138147 public function range ($ start , $ end , $ callback )
139148 {
140149 $ str = '' ;
You can’t perform that action at this time.
0 commit comments