Name | Type | Default | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
animationType | String | none | ||||||||||||
Sets or gets the animation type of switching tabs. Possible Values:
Code examples
Set the
Get the
Try it: animationType is set to 'fade'
|
||||||||||||||
autoHeight | Boolean | true | ||||||||||||
Sets or gets whether the jqxTabs header's height will be equal to the item with max height. Code examples
Set the
Get the
Try it: autoHeight is set to false
|
||||||||||||||
closeButtonSize | Number | 16 | ||||||||||||
Sets or gets the close button size. Code examples
Set the
Get the
Try it: closeButtonSize is set to 20
|
||||||||||||||
collapsible | Boolean | false | ||||||||||||
Enables or disables the collapsible feature. Code examples
Set the
Get the
Try it: collapsible is set to true
|
||||||||||||||
contentTransitionDuration | Number | 450 | ||||||||||||
Sets or gets the duration of the content's fade animation which occurs when the user selects a tab. This setting has effect when the 'animationType' is set to 'fade'. Code examples
Set the
Get the
|
||||||||||||||
disabled | Boolean | false | ||||||||||||
Enables or disables the jqxTabs widget. Code examples
Set the
Get the
Try it: disabled is set to true
|
||||||||||||||
enabledHover | Boolean | true | ||||||||||||
Enables or disables the tabs hover effect. Code examples
Set the
Get the
Try it: enabledHover is set to false
|
||||||||||||||
enableScrollAnimation | Boolean | true | ||||||||||||
Sets or gets whether the scroll animation is enabled. Code examples
Set the
Get the
|
||||||||||||||
height | Number/String | auto | ||||||||||||
Sets or gets widget's height. Code examples
Set the
Get the
Try it: height is set to 150
|
||||||||||||||
initTabContent | function | null | ||||||||||||
Callback function that the tab calls when a content panel needs to be initialized. Code examples
Set the
|
||||||||||||||
keyboardNavigation | Boolean | true | ||||||||||||
Enables or disables the keyboard navigation. Code examples
Set the
Get the
|
||||||||||||||
position | String | top | ||||||||||||
Sets or gets whether the tabs are positioned at 'top' or 'bottom. Possible Values:
Code examples
Set the
Get the
Try it: position is set to 'bottom'
|
||||||||||||||
reorder | Boolean | false | ||||||||||||
Enables or disables the reorder feature. When this feature is enabled, the end-user can drag a tab and drop it over another tab. As a result the tabs will be reordered. Code examples
Set the
Get the
Try it: reorder is set to a true
|
||||||||||||||
rtl | Boolean | false | ||||||||||||
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. Code example
Set the
Get the
Try it: rtl is set to true
|
||||||||||||||
scrollAnimationDuration | Number | 250 | ||||||||||||
Sets or gets the duration of the scroll animation. Code examples
Set the
Get the
|
||||||||||||||
selectedItem | Number | 0 | ||||||||||||
Sets or gets selected tab. Code examples
Set the
Get the
Try it: selectedItem is set to 1
|
||||||||||||||
selectionTracker | Boolean | false | ||||||||||||
Sets or gets whether the selection tracker is enabled. Code examples
Set the
Get the
Try it: selectionTracker is set to true
|
||||||||||||||
scrollable | Boolean | true | ||||||||||||
Sets or gets whether the scrolling is enabled. Code examples
Set the
Get the
Try it: scrollable is set to false
|
||||||||||||||
scrollPosition | String | 'right' | ||||||||||||
Sets or gets the position of the scroll arrows. Possible Values:
Code examples
Set the
Get the
Try it: scrollPosition is set to 'both'
|
||||||||||||||
scrollStep | Number | 70 | ||||||||||||
Sets or gets the scrolling step. Code examples
Set the
Get the
Try it: scrollStep is set to 100
|
||||||||||||||
showCloseButtons | Boolean | false | ||||||||||||
Sets or gets whether a close button is displayed in each tab. Code examples
Set the
Get the
Try it: showCloseButtons is set to true
|
||||||||||||||
toggleMode | String | click | ||||||||||||
Sets or gets user interaction used for switching the different tabs. Possible Values:
Code examples
Set the
Get the
Try it: toggleMode is set to 'dlclick'
|
||||||||||||||
theme | String | '' | ||||||||||||
Sets the widget's theme. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. In order to set a theme, you need to do the following:
Try it: theme is set to 'energyblue'
|
||||||||||||||
width | Number/String | auto | ||||||||||||
Sets or gets widget's width. Code examples
Set the
Get the
Try it: width is set to 300
|
||||||||||||||
Events |
||||||||||||||
add | Event | |||||||||||||
This event is triggered when a new tab is added to the jqxTabs. Code examples
Bind to the
|
||||||||||||||
created | Event | |||||||||||||
This event is triggered when the jqxTabs is created. You should subscribe to this event before the jqxTabs initialization. Code examples
Bind to the
|
||||||||||||||
collapsed | Event | |||||||||||||
Theis event is triggered when any tab is collapsed. Code examples
Bind to the
|
||||||||||||||
dragStart | Event | |||||||||||||
This event is triggered when the drag operation started. Code examples
Bind to the
|
||||||||||||||
dragEnd | Event | |||||||||||||
This event is triggered when the drag operation ended. Code examples
Bind to the
|
||||||||||||||
expanded | Event | |||||||||||||
This event is triggered when any tab is expanded. Code examples
Bind to the
|
||||||||||||||
removed | Event | |||||||||||||
This event is triggered when a tab is removed. Code examples
Bind to the
|
||||||||||||||
selecting | Event | |||||||||||||
This event is triggered when the user selects a tab. This event is cancelable. You can cancel the selection by setting the 'event.cancel = true' in the event callback. Code examples
Bind to the
|
||||||||||||||
selected | Event | |||||||||||||
This event is triggered when the user selects a new tab. Code examples
Bind to the
|
||||||||||||||
tabclick | Event | |||||||||||||
This event is triggered when the user click a tab. You can retrieve the clicked tab's index. Code examples
Bind to the
|
||||||||||||||
unselecting | Event | |||||||||||||
This event is triggered when the user selects a tab. The last selected tab is going to become unselected. This event is cancelable. You can cancel the selection by setting the 'event.cancel = true' in the event callback. Code examples
Bind to the
|
||||||||||||||
unselected | Event | |||||||||||||
This event is triggered when the user selects a tab. The last selected tab becomes unselected. Code examples
Bind to the
|
||||||||||||||
Methods |
||||||||||||||
addAt | Method | |||||||||||||
Adding tab at indicated position.
None Code examples
Invoke the
Try it: adds a new tab in the jqxTabs.
|
||||||||||||||
addFirst | Method | |||||||||||||
Adding tab at the beginning.
None Code examples
Invoke the
|
||||||||||||||
addLast | Method | |||||||||||||
Adding tab at the end.
None Code examples
Invoke the
|
||||||||||||||
collapse | Method | |||||||||||||
Collapsing the current selected tab.
None Code examples
Invoke the
Try it: collapses the jqxTabs.
|
||||||||||||||
disable | Method | |||||||||||||
Disabling the widget.
None Code examples
Invoke the
Try it: disables the jqxTabs.
|
||||||||||||||
disableAt | Method | |||||||||||||
Disabling tab with indicated index.
None Code examples
Invoke the
Try it: disables a tab in the jqxTabs.
|
||||||||||||||
destroy | Method | |||||||||||||
Destroys the widget.
None Code examples
Invoke the
Try it: destroy the jqxTabs.
|
||||||||||||||
ensureVisible | Method | |||||||||||||
This method is ensuring the visibility of item with indicated index. If the item is currently not visible the method is scrolling to it.
None Code examples
Invoke the
Try it: Bring a tab into the view.
|
||||||||||||||
enableAt | Method | |||||||||||||
Enabling tab with indicated index.
None Code examples
Invoke the
Try it: enables a tab in the jqxTabs.
|
||||||||||||||
expand | Method | |||||||||||||
Expanding the current selected tab.
None Code examples
Invoke the
Try it: expands the jqxTabs.
|
||||||||||||||
enable | Method | |||||||||||||
Enabling the widget.
None Code examples
Invoke the
Try it: enables the jqxTabs.
|
||||||||||||||
focus | Method | |||||||||||||
Focuses the widget.
None Code examples
Invoke the
Try it: focuses the jqxTabs.
|
||||||||||||||
getTitleAt | Method | |||||||||||||
Gets the title of a Tab. The returned value is a "string".
String Code examples
Invoke the
|
||||||||||||||
getContentAt | Method | |||||||||||||
Gets the content of a Tab. The returned value is a HTML Element.
Html element Code examples
Invoke the
|
||||||||||||||
hideCloseButtonAt | Method | |||||||||||||
Hiding a close button at a specific position.
None Code examples
Invoke the
|
||||||||||||||
hideAllCloseButtons | Method | |||||||||||||
Hiding all close buttons.
None Code examples
Invoke the
|
||||||||||||||
length | Method | |||||||||||||
Returning the tabs count.
Number Code examples
Invoke the
Try it: gets the length of the jqxTabs.
|
||||||||||||||
removeAt | Method | |||||||||||||
Removing tab with indicated index.
None Code examples
Invoke the
Try it: removes a tab in the jqxTabs.
|
||||||||||||||
removeFirst | Method | |||||||||||||
Removing the first tab.
None Code examples
Invoke the
|
||||||||||||||
removeLast | Method | |||||||||||||
Removing the last tab.
None Code examples
Invoke the
|
||||||||||||||
select | Method | |||||||||||||
Selecting tab with indicated index.
None Code examples
Invoke the
Try it: selects a tab in the jqxTabs.
|
||||||||||||||
setContentAt | Method | |||||||||||||
Sets the content of a Tab.
None Code examples
Invoke the
|
||||||||||||||
setTitleAt | Method | |||||||||||||
Sets the title of a Tab.
None Code examples
Invoke the
|
||||||||||||||
showCloseButtonAt | Method | |||||||||||||
Showing close button at a specific position.
None Code examples
Invoke the
|
||||||||||||||
showAllCloseButtons | Method | |||||||||||||
Showing all close buttons.
None Code examples
Invoke the
|
||||||||||||||
val | Method | |||||||||||||
Sets or gets the selected tab.
String Code example
Invoke the
// Get the selected tab's index using jQuery's val()
// Set the selected tab.
// Set the selected tab using jQuery's val().
|