Last change
on this file since 532 was
483,
checked in by hendrikvanantwerpen, 11 years ago
|
Added Dojo 1.9.3 release.
|
File size:
950 bytes
|
Line | |
---|
1 | define([ |
---|
2 | "dojo/_base/declare", |
---|
3 | "dojo/dom-construct", |
---|
4 | "./TextBox" |
---|
5 | ], function(declare, domConstruct, TextBox){ |
---|
6 | |
---|
7 | return declare("dojox.mobile.TextArea",TextBox, { |
---|
8 | // summary: |
---|
9 | // Non-templated TEXTAREA widget. |
---|
10 | // description: |
---|
11 | // A textarea widget that wraps an HTML TEXTAREA element. |
---|
12 | // Takes all the parameters (name, value, etc.) that a vanilla textarea takes. |
---|
13 | // example: |
---|
14 | // | <textarea dojoType="dojox.mobile.TextArea">...</textarea> |
---|
15 | |
---|
16 | baseClass: "mblTextArea", |
---|
17 | |
---|
18 | postMixInProperties: function(){ |
---|
19 | // Copy value from srcNodeRef, unless user specified a value explicitly (or there is no srcNodeRef) |
---|
20 | // TODO: parser will handle this in 2.0 |
---|
21 | if(!this.value && this.srcNodeRef){ |
---|
22 | this.value = this.srcNodeRef.value; |
---|
23 | } |
---|
24 | this.inherited(arguments); |
---|
25 | }, |
---|
26 | |
---|
27 | buildRendering: function(){ |
---|
28 | if(!this.srcNodeRef){ |
---|
29 | this.srcNodeRef = domConstruct.create("textarea", {}); |
---|
30 | } |
---|
31 | this.inherited(arguments); |
---|
32 | } |
---|
33 | }); |
---|
34 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.