UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

24 lines 1.31 kB
/// <reference path="../../../jqwidgets-ts/jqwidgets.d.ts" /> function createTextArea(selector) { var quotes = []; quotes.push('Life is a dream for the wise, a game for the fool, a comedy for the rich, a tragedy for the poor.'); quotes.push('Yesterday is not ours to recover, but tomorrow is ours to win or lose.'); quotes.push('It does not matter how slowly you go as long as you do not stop.'); quotes.push('Success depends upon previous preparation, and without such preparation there is sure to be failure.'); quotes.push('Better a diamond with a flaw than a pebble without.'); quotes.push('To succeed in life, you need two things: ignorance and confidence.'); quotes.push('A successful man is one who can lay a firm foundation with the bricks others have thrown at him.'); quotes.push('Sleep is the best meditation.'); // initialization options - validated in typescript // jqwidgets.TextAreaOptions has generated TS definition var options = { placeHolder: 'Enter a sentence', height: 90, width: 300, minLength: 1, source: quotes }; // creates an instance var textArea = jqwidgets.createInstance(selector, 'jqxTextArea', options); } //# sourceMappingURL=typescript-textarea.js.map