Clear Up
SharpKit Reference

TabsOptions Class

Options JSON object for Tabs

Namespace: SharpKit.jQuery

Base Types

System.Object

Constructors

Name Description
TabsOptions()

Properties

Name Description
addEvent This event is triggered when a tab is added.
ajaxOptions Additional Ajax options to consider when loading tab content (see $.ajax). Default: null
cache Whether or not to cache remote tabs content, e.g. load only once or with every click. Cached content is being lazy loaded, e.g once and only once for the first click. Note that to prevent the actual Ajax requests from being cached by the browser you need to provide an extra cache: false flag to ajaxOptions. Default: false
collapsible Set to true to allow an already selected tab to become unselected again upon reselection. Default: false
cookie Store the latest selected tab in a cookie. The cookie is then used to determine the initially selected tab if the selected option is not defined. Requires cookie plugin. The object needs to have key/value pairs of the form the cookie plugin expects as options. Available options (example): { expires: 7, path: '/', domain: 'jquery.com', secure: true }. Since jQuery UI 1.7 it is also possible to define the cookie name being used via name property. Default: null
create This event is triggered when tabs is created.
deselectable deprecated in jQuery UI 1.7, use collapsible. Default: false
disabled Disables (true) or enables (false) the button. Can be set when initialising (first creating) the button. Default:false
disabledIntArray An array containing the position of the tabs (zero-based index) that should be disabled on initialization. Default: []
disableEvent This event is triggered when a tab is disabled.
enableEvent This event is triggered when a tab is enabled.
event The type of event to be used for selecting a tab. Default: 'click'
fx Enable animations for hiding and showing tab panels. The duration option can be a string representing one of the three predefined speeds ("slow", "normal", "fast") or the duration in milliseconds to run an animation (default is "normal"). Default: null Types: Options, Array<Options>
idPrefix If the remote tab, its anchor element that is, has no title attribute to generate an id from, an id/fragment identifier is created from this prefix and a unique id returned by $.data(el), for example "ui-tabs-54". Default: 'ui-tabs-'
loadEvent This event is triggered after the content of a remote tab has been loaded.
panelTemplate HTML template from which a new tab panel is created in case of adding a tab with the add method or when creating a panel for a remote tab on the fly. Default: '
'
removeEvent This event is triggered when a tab is removed.
selected Zero-based index of the tab to be selected on initialization. To set all tabs to unselected pass -1 as value. Default: 0
selectEvent This event is triggered when clicking a tab.
show This event is triggered when a tab is shown.
spinner The HTML content of this string is shown in a tab title while remote content is loading. Pass in empty string to deactivate that behavior. Default: 'Loading…'
tabTemplate HTML template from which a new tab is created and added. The placeholders #{href} and #{label} are replaced with the url and tab label that are passed as arguments to the add method. Default: '
  • #{label}
  • '
    © Copyright 2005-2011 SharpKit. All rights reserved.