| Name | Type | Default |
|---|---|---|
| disabled | Boolean | false |
|
Enables or disables the jqxToolBar and all its tools. <template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools" :disabled="true"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
}
}
</script>
|
||
| height | Number | String | 35 |
|
Sets or gets the jqxToolBar's height. <template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
}
}
</script>
|
||
| initTools | Function | null |
|
A callback function where settings can be made to the tools specified in the If you wish to disable the minimization of a tool, return
<template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
}
}
</script>
|
||
| minimizeWidth | Number | 200 |
|
Sets or gets the width of the minimize pop-up menu. <template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools" :minimizeWidth="400"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
}
}
</script>
|
||
| minWidth | Number | null |
|
Sets or gets the minimum width of the jqxToolBar. <template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools" :minWidth="300"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
}
}
</script>
|
||
| maxWidth | Number | null |
|
Sets or gets the maximum width of the jqxToolBar. <template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools" :maxWidth="900"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
}
}
</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>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools" :rtl="true"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
}
}
</script>
|
||
| tools | String | '' |
|
Sets or gets the types of tools in the jqxToolBar in the order they appear. The value of <template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
}
}
</script>
|
||
| theme | String | '' |
|
Sets the widget's theme.
<template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools" :theme="'material'"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
}
}
</script>
|
||
| width | Number | String | null |
|
Sets or gets the jqxToolBar's width. <template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
}
}
</script>
|
||
Events |
||
| close | Event | |
|
This event is triggered when the minimize pop-up menu is closed. Code examples
Bind to the
<template>
<JqxToolBar ref="myToolBar" @close="onClose($event)"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
},
mounted: function () {
this.$refs.myToolBar.width = '30%';
},
methods: {
onClose: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| open | Event | |
|
This event is triggered when the minimize pop-up menu is opened. Code examples
Bind to the
<template>
<JqxToolBar ref="myToolBar" @open="onOpen($event)"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
},
mounted: function () {
this.$refs.myToolBar.width = '30%';
},
methods: {
onOpen: function (event) {
alert('do something...');
}
}
}
</script>
|
||
Methods |
||
| Name | Arguments | Return Type |
| addTool | type, position, separator, menuToolIninitialization | None |
|
Adds a tool to the jqxToolBar. List of parameters:
<template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
},
mounted: function () {
this.$refs.myToolBar.addTool('button','last','',function (type, tool, menuToolIninitialization) {
tool.text("New button");
tool.jqxButton({
width: 170
});
});
}
}
</script>
|
||
| disableTool | index, disable | None |
|
Disables a tool. List of parameters:
<template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
},
mounted: function () {
this.$refs.myToolBar.disableTool(1,true);
}
}
</script>
|
||
| destroy | None | None |
|
Destroys the toolbar and all its tools. <template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
},
mounted: function () {
this.$refs.myToolBar.destroy();
}
}
</script>
|
||
| destroyTool | index | None |
|
Destroys a tool. <template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
},
mounted: function () {
this.$refs.myToolBar.destroyTool(1);
}
}
</script>
|
||
| getTools | None | Array |
|
Returns an array of all tools in the jqxToolBar. Each tool is represented by an object with the following fields:
<template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
},
mounted: function () {
const value = this.$refs.myToolBar.getTools();
}
}
</script>
|
||
| render | None | None |
|
Renders the widget. <template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
},
mounted: function () {
this.$refs.myToolBar.render();
}
}
</script>
|
||
| refresh | None | None |
|
Refreshes the widget. <template>
<JqxToolBar ref="myToolBar"
:width="'70%'" :height="35" :tools="tools" :initTools="initTools"
/>
</template>
<script>
import JqxToolBar from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxtoolbar.vue';
export default {
components: {
JqxToolBar
},
data: function () {
return {
tools: 'button | dropdownlist combobox | input',
initTools: function (type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
tool.text('Button');
break;
case 1:
tool.jqxDropDownList({
width: 130,
source: ['Affogato', 'Breve', 'Cafe', 'Crema'],
selectedIndex: 1
});
break;
case 2:
tool.jqxComboBox({
width: 50,
source: [8, 9, 10, 11, 12, 14, 16, 18, 20],
selectedIndex: 3
});
break;
case 3:
tool.jqxInput({
width: 200,
placeHolder: 'Type here...'
});
break;
}
}
}
},
mounted: function () {
this.$refs.myToolBar.refresh();
}
}
</script>
|
||