c7348962d7ad373b2a708d8db5d2309940f9431f
[ccsdk/features.git] /
1 (function( app ) {
2
3         var ui = app.ns("ui");
4
5         ui.TextField = ui.AbstractField.extend({
6                 init: function() {
7                         this._super();
8                 },
9                 _keyup_handler: function() {
10                         this.fire("change", this );
11                 },
12                 _main_template: function() {
13                         return { tag: "DIV", id: this.id(), cls: "uiField uiTextField", children: [
14                                 { tag: "INPUT",
15                                         type: "text",
16                                         name: this.config.name,
17                                         placeholder: this.config.placeholder,
18                                         onkeyup: this._keyup_handler
19                                 }
20                         ]};
21                 }
22         });
23
24 })( this.app );