TextArea

API Reference: UI.TextArea

TextArea is a UI object, contents of which is editable by the user. It supports multiline editing.

JavaScript
JavaScript
const extend = require('js-base/core/extend');
const Page = require('sf-core/ui/page');
const TextArea = require('sf-core/ui/textarea');
const Page1 = extend(Page)(
function(_super){
_super(this);
this.onShow = function() {
this.headerBar.visible = false;
Application.statusBar.visible = false;
var myTextArea= new TextArea({
left:10, top:10, width:200, height:200,
borderWidth: 1
});
this.layout.addChild(myTextArea);
}.bind(this);
}
);
module && (module.exports = Page1);