Vue UI Components Documentation
The Vue TextArea is a multi-line text input with auto-complete and a styled scrollbar. This guide adds the Vue TextArea (jqxTextArea) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css';
With <script setup>, an imported component is ready to use in the template. jqx.base.css is required; the second file is a theme, selected with the theme attribute.
The Overview demo as a Single-File Component:
<template>
<JqxTextArea
:width="300"
:height="100"
:source="generateSource"
:placeHolder="'Enter a Sentence'"
:minLength="1"
/>
</template>
<script setup>
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
function generateSource() {
const 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.');
return quotes;
}
</script>
Options are attributes. Bind values from the script with :, for example :width="850".
Listen to an event with @ and its name. For example, change: This event is triggered when the value is changed.
<script setup>
function onChange(event) {
console.log(event.args);
}
</script>
<template>
<JqxTextArea @change="onChange" />
</template>
Call methods through a template ref. For example, val: Sets or gets the value.
<script setup>
import { ref, onMounted } from 'vue';
const myTextArea = ref(null);
onMounted(() => {
const value = myTextArea.value.val();
console.log(value);
});
</script>
<template>
<JqxTextArea ref="myTextArea" />
</template>
Every component also has setOptions({ … }) and getOptions('name').