| Name | Type | Default |
|
disabled
# |
Boolean
|
false
|
Enables or disables the jqxTextArea.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:disabled="true"
/>
</template>
<script setup>
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
</script>
|
|
displayMember
# |
String
|
''
|
Sets or gets the displayMember of the Items. The displayMember specifies the name of an object property to display. The name is contained in the collection specified by the 'source' property.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:displayMember="displayMember"
:source="source"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const displayMember = ref('ContactName');
const source = ref([
{ CompanyName: 'Company1', ContactName: 'Ana' },
{ CompanyName: 'Company2', ContactName: 'Maria' }
]);
</script>
|
|
dropDownWidth
# |
Number
|
null
|
Sets or gets the jqxTextArea's dropdown (pop-up) width.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:dropDownWidth="dropDownWidth"
:source="source"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const dropDownWidth = ref(300);
const source = ref([
'Afghanistan',
'Albania',
'Algeria',
'Andorra',
'Angola',
'Brazil',
'Brunei',
'Bulgaria'
]);
</script>
|
|
height
# |
Number | String
|
null
|
Sets or gets the jqxTextArea's height.
<template>
<JqxTextArea ref="myTextArea" :width="200" :height="50" :placeHolder="'Enter a Country'" />
</template>
<script setup>
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
</script>
|
|
items
# |
Number
|
8
|
Sets or gets the maximum number of items to display in the popup menu.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:items="items"
:source="source"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const items = ref(3);
const source = ref([
'Afghanistan',
'Albania',
'Algeria',
'Andorra',
'Angola',
'Brazil',
'Brunei',
'Bulgaria'
]);
</script>
|
|
maxLength
# |
Number
|
null
|
Sets or gets the maximum character length of the textarea.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:maxLength="10"
/>
</template>
<script setup>
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
</script>
|
|
minLength
# |
Number
|
1
|
Sets or gets the minimum character length needed before triggering auto-complete suggestions.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:minLength="2"
/>
</template>
<script setup>
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
</script>
|
|
opened
# |
Boolean
|
false
|
Gets a value indicating whether the auto-suggest popup is opened.
<template>
<JqxTextArea ref="myTextArea" :width="200" :height="50" :placeHolder="'Enter a Country'" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const myTextArea = ref(null);
onMounted(() => {
let opened = myTextArea.value.opened;
alert('Opened: ' + opened);
});
</script>
|
|
placeHolder
# |
String
|
''
|
Sets or gets the textarea's placeholder.
<template>
<JqxTextArea ref="myTextArea" :width="200" :height="50" :placeHolder="'Enter a Country'" />
</template>
<script setup>
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
</script>
|
Sets or gets the auto-suggest popup's z-index.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:popupZIndex="popupZIndex"
:source="source"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const popupZIndex = ref(99999);
const source = ref([
'Afghanistan',
'Albania',
'Algeria',
'Andorra',
'Angola',
'Brazil',
'Brunei',
'Bulgaria'
]);
</script>
|
|
query
# |
String
|
''
|
Determines the textarea's query.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:source="source"
:placeHolder="'Enter a Country'"
:renderer="renderer"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const myTextArea = ref(null);
const countries = ref([
'Afghanistan',
'Albania',
'Algeria',
'Andorra',
'Angola',
'Brazil',
'Brunei',
'Bulgaria'
]);
function source(query, response) {
const item = query.split(/,\s*/).pop();
// update the search query.
myTextArea.value.query = item;
response(this.countries);
}
function renderer(itemValue, inputValue) {
const terms = inputValue.split(/,\s*/);
// remove the current input
terms.pop();
// add the selected item
terms.push(itemValue);
// add placeholder to get the comma-and-space at the end
terms.push('');
return terms.join(', ');
}
</script>
|
|
renderer
# |
Function
|
null
|
Enables you to update the textarea's value, after a selection from the auto-complete popup.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:source="source"
:placeHolder="'Enter a Country'"
:renderer="renderer"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const myTextArea = ref(null);
const countries = ref([
'Afghanistan',
'Albania',
'Algeria',
'Andorra',
'Angola',
'Brazil',
'Brunei',
'Bulgaria'
]);
function source(query, response) {
const item = query.split(/,\s*/).pop();
// update the search query.
myTextArea.value.query = item;
response(this.countries);
}
function renderer(itemValue, inputValue) {
const terms = inputValue.split(/,\s*/);
// remove the current input
terms.pop();
// add the selected item
terms.push(itemValue);
// add placeholder to get the comma-and-space at the end
terms.push('');
return terms.join(', ');
}
</script>
|
|
roundedCorners
# |
Boolean
|
true
|
Enables or disables the rounded corners functionality. This property setting has effect in browsers which support CSS border-radius.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:roundedCorners="true"
/>
</template>
<script setup>
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
</script>
|
|
rtl
# |
Boolean
|
false
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:rtl="true"
/>
</template>
<script setup>
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
</script>
|
|
scrollBarSize
# |
Number
|
15
|
Sets or gets the size of the scrollbar.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:scrollBarSize="15"
/>
</template>
<script setup>
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
</script>
|
|
searchMode
# |
String
|
'default'
|
Sets or gets the search mode. When the user types into the textarea, the widget tries to find the searched item using the entered text and the selected search mode.
Possible Values:
'none'
'contains'
'containsignorecase'
'equals'
'equalsignorecase'
'startswithignorecase'
'startswith'
'endswithignorecase'
'endswith'
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:searchMode="searchMode"
:source="source"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const searchMode = ref('containsignorecase');
const source = ref([
'Afghanistan',
'Albania',
'Algeria',
'Andorra',
'Angola',
'Brazil',
'Brunei',
'Bulgaria'
]);
</script>
|
|
source
# |
Array | Function | Object
|
[]
|
Sets the widget's data source. The 'source' function is passed two arguments, the textarea's value and a callback function. The 'source' function may be used synchronously by returning an array of items or asynchronously via the callback.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:source="source"
/>
</template>
<script setup>
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
function source() {
return [
'Afghanistan',
'Albania',
'Algeria',
'Andorra',
'Angola',
'Brazil',
'Brunei',
'Bulgaria'
];
}
</script>
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:theme="'material'"
/>
</template>
<script setup>
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
</script>
|
|
valueMember
# |
String
|
''
|
Sets or gets the valueMember of the Items. The valueMember specifies the name of an object property to set as a 'value' of the list items. The name is contained in the collection specified by the 'source' property.
<template>
<JqxTextArea
ref="myTextArea"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:valueMember="valueMember"
:source="source"
:displayMember="'ContactName'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const valueMember = ref('CompanyName');
const source = ref([
{ CompanyName: 'Company1', ContactName: 'Ana' },
{ CompanyName: 'Company2', ContactName: 'Maria' }
]);
</script>
|
|
width
# |
Number | String
|
null
|
Sets or gets the jqxTextArea's width.
<template>
<JqxTextArea ref="myTextArea" :width="200" :height="50" :placeHolder="'Enter a Country'" />
</template>
<script setup>
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
</script>
|
|
|
|
change
# |
Event
|
|
This event is triggered when the value is changed.
Code examples #
Bind to the change event of jqxTextArea.
<template>
<JqxTextArea
ref="myTextArea"
@open="open($event)"
@change="change($event)"
@select="select($event)"
@close="close($event)"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:source="source"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const source = ref([
'Afghanistan',
'Albania',
'Algeria',
'Andorra',
'Angola',
'Brazil',
'Brunei',
'Bulgaria'
]);
function open(event) {
alert('open');
}
function change(event) {
alert('change');
}
function select(event) {
alert('select');
}
function close(event) {
alert('close');
}
</script>
|
|
close
# |
Event
|
|
This event is triggered when the auto-suggest popup is closed.
Code examples #
Bind to the close event of jqxTextArea.
<template>
<JqxTextArea
ref="myTextArea"
@open="open($event)"
@change="change($event)"
@select="select($event)"
@close="close($event)"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:source="source"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const source = ref([
'Afghanistan',
'Albania',
'Algeria',
'Andorra',
'Angola',
'Brazil',
'Brunei',
'Bulgaria'
]);
function open(event) {
alert('open');
}
function change(event) {
alert('change');
}
function select(event) {
alert('select');
}
function close(event) {
alert('close');
}
</script>
|
|
open
# |
Event
|
|
This event is triggered when the auto-suggest popup is opened.
Code examples #
Bind to the open event of jqxTextArea.
<template>
<JqxTextArea
ref="myTextArea"
@open="open($event)"
@change="change($event)"
@select="select($event)"
@close="close($event)"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:source="source"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const source = ref([
'Afghanistan',
'Albania',
'Algeria',
'Andorra',
'Angola',
'Brazil',
'Brunei',
'Bulgaria'
]);
function open(event) {
alert('open');
}
function change(event) {
alert('change');
}
function select(event) {
alert('select');
}
function close(event) {
alert('close');
}
</script>
|
|
select
# |
Event
|
|
This event is triggered when an item is selected from the auto-suggest popup.
Code examples #
Bind to the select event of jqxTextArea.
<template>
<JqxTextArea
ref="myTextArea"
@open="open($event)"
@change="change($event)"
@select="select($event)"
@close="close($event)"
:width="200"
:height="50"
:placeHolder="'Enter a Country'"
:source="source"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const source = ref([
'Afghanistan',
'Albania',
'Algeria',
'Andorra',
'Angola',
'Brazil',
'Brunei',
'Bulgaria'
]);
function open(event) {
alert('open');
}
function change(event) {
alert('change');
}
function select(event) {
alert('select');
}
function close(event) {
alert('close');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
destroy
# |
None
|
None
|
Destroys the widget.
<template>
<JqxTextArea ref="myTextArea" :width="200" :height="50" :placeHolder="'Enter a Country'" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const myTextArea = ref(null);
onMounted(() => {
myTextArea.value.destroy();
});
</script>
|
|
focus
# |
None
|
None
|
Focuses the widget.
<template>
<JqxTextArea ref="myTextArea" :width="200" :height="50" :placeHolder="'Enter a Country'" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const myTextArea = ref(null);
onMounted(() => {
myTextArea.value.focus();
});
</script>
|
|
refresh
# |
None
|
None
|
Refreshes the widget.
<template>
<JqxTextArea ref="myTextArea" :width="200" :height="50" :placeHolder="'Enter a Country'" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const myTextArea = ref(null);
onMounted(() => {
myTextArea.value.refresh();
});
</script>
|
|
render
# |
None
|
None
|
Renders the widget.
<template>
<JqxTextArea ref="myTextArea" :width="200" :height="50" :placeHolder="'Enter a Country'" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const myTextArea = ref(null);
onMounted(() => {
myTextArea.value.render();
});
</script>
|
|
selectAll
# |
None
|
None
|
Selects the text in the textarea.
<template>
<JqxTextArea ref="myTextArea" :width="200" :height="50" :placeHolder="'Enter a Country'" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const myTextArea = ref(null);
onMounted(() => {
myTextArea.value.selectAll();
});
</script>
|
|
val
# |
value
|
String
|
Sets or gets the value.
<template>
<JqxTextArea ref="myTextArea" :width="200" :height="50" :placeHolder="'Enter a Country'" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTextArea from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtextarea.vue';
const myTextArea = ref(null);
onMounted(() => {
const value = myTextArea.value.val();
});
</script>
|