File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -535,6 +535,35 @@ class Button extends Control {
535
535
536
536
class TextField extends Control {
537
537
538
+ // FIXME KAZUHO circular reference
539
+ var _node = web . dom . document . createElement ( "INPUT" ) as web . HTMLInputElement ;
540
+
541
+ function constructor ( ) {
542
+ }
543
+
544
+ function constructor ( text : string ) {
545
+ this . _node . value = text ;
546
+ }
547
+
548
+ function getValue ( ) : string {
549
+ return this . _node . value ;
550
+ }
551
+
552
+ function setValue ( text : string ) : void {
553
+ this ._node . value = text ;
554
+ }
555
+
556
+ override function _toElement ( ) : web . HTMLElement {
557
+ var element = super . _toElement ( ) ; // <div>
558
+
559
+ element . appendChild ( this . _node ) ;
560
+
561
+ var style = this . _node . style ;
562
+ style . width = "100%" ;
563
+
564
+ return element ;
565
+ }
566
+
538
567
}
539
568
540
569
You can’t perform that action at this time.
0 commit comments