| Name | Type | Default |
|
animationType
# |
String
|
'slide'
|
Sets or gets the animation type.
Possible Values:
'slide'
'fade'
'none'
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200" :animationType="'fade'">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
arrowPosition
# |
String
|
'right'
|
Sets or gets header's arrow position.
Possible Values:
'left'
'right'
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200" :arrowPosition="'left'">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
collapseAnimationDuration
# |
Number
|
400
|
Sets or gets the collapsing animation duration.
<template>
<JqxNavigationBar
ref="myNavigationBar"
:width="400"
:height="200"
:collapseAnimationDuration="3000"
>
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
disabled
# |
Boolean
|
false
|
Sets or gets whether the navigation bar is disabled.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200" :disabled="true">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
expandAnimationDuration
# |
Number
|
400
|
Sets or gets the expanding animation duration.
<template>
<JqxNavigationBar
ref="myNavigationBar"
:width="400"
:height="200"
:expandAnimationDuration="3000"
>
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
expandMode
# |
String
|
'singleFitHeight'
|
Sets or gets navigation bar's expand mode. Possible values ['single', 'singleFitHeight' 'multiple', 'toggle', 'none'].
Possible Values:
'single' - only one item can be expanded. If the expanded item's height is greater than the value of the height property, a vertical scrollbar is shown.
'singleFitHeight' - only one item can be expanded. If the expanded item's height is greater than the value of the height property, a vertical scrollbar is shown inside the content of the expanded item
'multiple' - multiple items can be expanded. If the expanded items' height is greater than the value of the height property, a vertical scrollbar is shown.
'toggle' - only one item can be expanded. The expanded item can also be collapsed.If the expanded item's height is greater than the value of the height property, a vertical scrollbar is shown
'none' - no items can be expanded/collapsed
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200" :expandMode="'single'">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
expandedIndexes
# |
Array
|
[]
|
Sets or gets the expanded item(s). If the property expandMode is set to either 'single', 'singleFitHeight', 'toggle' or 'none', only the item corresponding to the first value in the array is expanded. If the property expandMode is set to either 'single' or 'singleFitHeight' and the expandedIndexes array is empty, the first item is expanded automatically.
<template>
<JqxNavigationBar
ref="myNavigationBar"
:width="400"
:height="200"
:expandMode="'multiple'"
:expandedIndexes="[0, 1]"
>
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
height
# |
Number | String
|
'auto'
|
Sets or gets the navigationbar's height. Possible values - 'auto' or string like this 'Npx' where N is any number or a numeric value in pixels.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
initContent
# |
Function
|
null
|
Callback function called when an item's content needs to be initialized. Useful for initializing other widgets within the content of any of the items of jqxNavigationBar. The index argument shows which item is initialized.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200" :initContent="initContent">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
function initContent() {
jqwidgets.createInstance('#button', 'jqxButton', { width: 50, height: 50 });
}
</script>
|
|
rtl
# |
Boolean
|
false
|
Determines whether the right-to-left support is enabled.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200" :rtl="true">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
showArrow
# |
Boolean
|
true
|
Sets or gets whether header's arrow is going to be shown.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200" :showArrow="false">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200" :theme="'material'">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
toggleMode
# |
String
|
click
|
Sets or gets user interaction used for expanding or collapsing the content. Possible values ['click', 'dblclick', 'none'].
Possible Values:
'click'
'dblclick'
'none'
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200" :toggleMode="'dblclick'">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
width
# |
Number | String
|
'auto'
|
Sets or gets the navigationbar's width. Possible values - 'auto' or string like this 'Npx' where N is any number or a numeric value in pixels.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
</script>
|
|
|
|
collapsingItem
# |
Event
|
|
This event is triggered when a jqxNavigationBar item is going to be collapsed.
Code examples #
Bind to the collapsingItem event of jqxNavigationBar.
<template>
<JqxNavigationBar
ref="myNavigationBar"
@collapsingItem="onCollapsingItem($event)"
:width="400"
:height="200"
>
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
function onCollapsingItem(event) {
alert('do something...');
}
</script>
|
|
collapsedItem
# |
Event
|
|
This event is triggered when a jqxNavigationBar item is collapsed.
Code examples #
Bind to the collapsedItem event of jqxNavigationBar.
<template>
<JqxNavigationBar
ref="myNavigationBar"
@collapsedItem="onCollapsedItem($event)"
:width="400"
:height="200"
>
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
function onCollapsedItem(event) {
alert('do something...');
}
</script>
|
|
expandingItem
# |
Event
|
|
This event is triggered when a jqxNavigationBar item is going to be expanded.
Code examples #
Bind to the expandingItem event of jqxNavigationBar.
<template>
<JqxNavigationBar
ref="myNavigationBar"
@expandingItem="onExpandingItem($event)"
:width="400"
:height="200"
>
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
function onExpandingItem(event) {
alert('do something...');
}
</script>
|
|
expandedItem
# |
Event
|
|
This event is triggered when a jqxNavigationBar item is expanded.
Code examples #
Bind to the expandedItem event of jqxNavigationBar.
<template>
<JqxNavigationBar
ref="myNavigationBar"
@expandedItem="onExpandedItem($event)"
:width="400"
:height="200"
>
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
function onExpandedItem(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
add
# |
header, content
|
None
|
This method inserts an item at the bottom of the navigationbar. It has two parameters - header (the header of the new item) and content (the content of the new item).
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
myNavigationBar.value.add('Header', 'Content');
});
</script>
|
|
collapseAt
# |
index
|
None
|
Collapsing item with any index.
<template>
<div>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
<JqxButton @click="collapse">Collapse First</JqxButton>
<JqxButton @click="expand">Expand First</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
function collapse() {
myNavigationBar.value.collapseAt(0);
}
function expand() {
myNavigationBar.value.expandAt(0);
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 15px;
margin-right: 20px;
}
</style>
|
|
disableAt
# |
index
|
None
|
Disabling item with any index.
<template>
<div>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
<JqxButton @click="disable">Disable First</JqxButton>
<JqxButton @click="enable">Enable First</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
function disable() {
myNavigationBar.value.disableAt(0);
}
function enable() {
myNavigationBar.value.enableAt(0);
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 15px;
margin-right: 20px;
}
</style>
|
|
disable
# |
None
|
None
|
This method is disabling the navigation bar.
<template>
<div>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
<JqxButton @click="disable">Disable</JqxButton>
<JqxButton @click="enable">Enable</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
function disable() {
myNavigationBar.value.disable();
}
function enable() {
myNavigationBar.value.enable();
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 15px;
margin-right: 20px;
}
</style>
|
|
destroy
# |
None
|
None
|
This method destroys the navigationbar.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
myNavigationBar.value.destroy();
});
</script>
|
|
expandAt
# |
index
|
None
|
Expanding item with any index.
<template>
<div>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
<JqxButton @click="collapse">Collapse First</JqxButton>
<JqxButton @click="expand">Expand First</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
function collapse() {
myNavigationBar.value.collapseAt(0);
}
function expand() {
myNavigationBar.value.expandAt(0);
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 15px;
margin-right: 20px;
}
</style>
|
|
enableAt
# |
index
|
None
|
Enabling item with any index.
<template>
<div>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
<JqxButton @click="disable">Disable First</JqxButton>
<JqxButton @click="enable">Enable First</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
function disable() {
myNavigationBar.value.disableAt(0);
}
function enable() {
myNavigationBar.value.enableAt(0);
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 15px;
margin-right: 20px;
}
</style>
|
|
enable
# |
None
|
None
|
This method is enabling the navigation bar.
<template>
<div>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
<JqxButton @click="disable">Disable</JqxButton>
<JqxButton @click="enable">Enable</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
function disable() {
myNavigationBar.value.disable();
}
function enable() {
myNavigationBar.value.enable();
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 15px;
margin-right: 20px;
}
</style>
|
|
focus
# |
None
|
None
|
This method focuses on the navigationbar. When the widget is focused, keyboard navigation can be used. Here is a list of the keys, supported by jqxNavigationBar and their function:
- Enter/Spacebar - if the focus is on an item header, collapses or expands the item.
- Left/Up arrow - focuses on the previous item header or on the last one if the currently focused is the first one.
- Right/Down arrow - focuses on the next item header or on the first one if the currently focused is the last one.
- End - focuses on the last item header.
- Home - focuses on the first item header.
- Tab - focuses on the first header or the next element in the DOM.
- Ctrl+Up arrow - if the focus is on an item content, focuses on its respective header.
- Ctrl+Down arrow - if the focus is on an item header, focuses on its respective content.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
myNavigationBar.value.focus();
});
</script>
|
Getting header content of item with any index. Returns a string value.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
const value = myNavigationBar.value.getHeaderContentAt(1);
});
</script>
|
|
getContentAt
# |
index
|
String
|
Getting content of item with any index. Returns a string value.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
const value = myNavigationBar.value.getContentAt(1);
});
</script>
|
|
hideArrowAt
# |
index
|
None
|
Hiding the arrow of an item with specific index.
<template>
<div>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
<JqxButton @click="hideArrow">Hide Arrow</JqxButton>
<JqxButton @click="showArrow">Show Arrow</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
function hideArrow() {
myNavigationBar.value.hideArrowAt(1);
}
function showArrow() {
myNavigationBar.value.showArrowAt(1);
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 15px;
margin-right: 20px;
}
</style>
|
|
invalidate
# |
None
|
None
|
This method refreshes the navigationbar.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
myNavigationBar.value.invalidate();
});
</script>
|
|
insert
# |
Index, header, content
|
None
|
This method inserts an item at a specific index. It has three parameters - index, header (the header of the new item) and content (the content of the new item).
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
myNavigationBar.value.insert(1, 'Header', 'Content');
});
</script>
|
|
refresh
# |
None
|
None
|
This method refreshes the navigationbar.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
myNavigationBar.value.refresh();
});
</script>
|
|
render
# |
None
|
None
|
This method renders the navigationbar.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
myNavigationBar.value.render();
});
</script>
|
|
remove
# |
index
|
None
|
This method removes an item at a specific index. The parameter (index) is optional and if it is not set, the method removes the last item.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
myNavigationBar.value.remove(1);
});
</script>
|
|
setContentAt
# |
index, item
|
None
|
Setting content to item with any index.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
myNavigationBar.value.setContentAt(1, 'Content');
});
</script>
|
Setting header content to item with any index
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
myNavigationBar.value.setHeaderContentAt(1, 'Header');
});
</script>
|
|
showArrowAt
# |
index
|
None
|
Showing the arrow of an item with specific index.
<template>
<div>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
<JqxButton @click="hideArrow">Hide Arrow</JqxButton>
<JqxButton @click="showArrow">Show Arrow</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
function hideArrow() {
myNavigationBar.value.hideArrowAt(1);
}
function showArrow() {
myNavigationBar.value.showArrowAt(1);
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 15px;
margin-right: 20px;
}
</style>
|
|
update
# |
index, header, content
|
None
|
This method updates an item at a specific index. It has three parameters - index, header (the new header of the item) and content (the new content of the item).
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
myNavigationBar.value.update(1, 'Title', 'Content');
});
</script>
|
|
val
# |
value
|
String
|
Sets or gets the expanded item.
<template>
<JqxNavigationBar ref="myNavigationBar" :width="400" :height="200">
<div>Header 1</div>
<div>Content 1 <input type="button" id="button" value="Button" /></div>
<div>Header 2</div>
<div>Content 2</div>
</JqxNavigationBar>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNavigationBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnavigationbar.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myNavigationBar = ref(null);
onMounted(() => {
myNavigationBar.value.val(1);
});
</script>
|