UNPKG

jqwidgets-framework

Version:

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

42 lines (38 loc) 2.6 kB
<!DOCTYPE html> <html lang="en"> <head> <title id="Description">The sample illustrates the basic functionality of the jqxTextArea widget. The jqxTextArea widget provides suggestions while you type into the field. The datasource is a simple JavaScript array, provided to the widget using the "source" property.</title> <link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <script type="text/javascript" src="../../../scripts/jquery-1.12.4.min.js"></script> <script type="text/javascript" src="../../../scripts/demos.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxscrollbar.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxtextarea.js"></script> <script type="text/javascript"> $(document).ready(function () { 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.'); $('#jqxTextArea').jqxTextArea({ placeHolder: 'Enter a sentence', height: 90, width: 300, minLength: 1, source: quotes }); }); </script> </head> <body class="default"> <textarea id="jqxTextArea"></textarea> <div style="position: absolute; bottom: 5px; right: 5px;"> <a href="https://www.jqwidgets.com/" alt="https://www.jqwidgets.com/"><img alt="https://www.jqwidgets.com/" title="https://www.jqwidgets.com/" src="https://www.jqwidgets.com/wp-content/design/i/logo-jqwidgets.png"/></a> </div> </body> </html>