ExpandingTextArea.js 998 B

123456789101112131415161718192021222324252627
  1. define("dojox/mobile/ExpandingTextArea", [
  2. "dojo/_base/declare",
  3. "dijit/form/_ExpandingTextAreaMixin",
  4. "./TextArea"
  5. ], function(declare, ExpandingTextAreaMixin, TextArea){
  6. /*=====
  7. TextArea = dojox.mobile.TextArea;
  8. ExpandingTextAreaMixin = dijit.form._ExpandingTextAreaMixin;
  9. =====*/
  10. return declare("dojox.mobile.ExpandingTextArea", [TextArea, ExpandingTextAreaMixin], {
  11. // summary:
  12. // Non-templated TEXTAREA widget with the capability to adjust it's height according to the amount of data.
  13. //
  14. // description:
  15. // A textarea that dynamically expands/contracts (changing it's height) as
  16. // the user types, to display all the text without requiring a vertical scroll bar.
  17. //
  18. // Takes all the parameters (name, value, etc.) that a vanilla textarea takes.
  19. // Rows is not supported since this widget adjusts the height.
  20. //
  21. // example:
  22. // | <textarea dojoType="dojox.mobile.ExpandingTextArea">...</textarea>
  23. baseClass: "mblTextArea mblExpandingTextArea"
  24. });
  25. });