Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 613 Bytes

File metadata and controls

29 lines (20 loc) · 613 Bytes

what

Without html application technology

##使用示例

效果演示:https://osdg.github.io/what/examples/TextInput/Release/

namespace what.examples.textinput {

    export class Main extends Application {
        constructor() {
            super();

            var span = new Span(new Value("Please type here:"));
            this.addChild(span);

            var ti = new TextInput();
            this.addChild(ti);

            var span = new Span(ti.text);
            this.addChild(span);
        }
    }

    new Main();
}