ui.tab
Hierarchy
coreui.tabRequires
jqueryFiles
Config options
Changes the tab location through dragging
Defaults to: false
Defines a DOM event to be used in a UI
Defaults to: {}
Sets a tab list to data rather than markup
Defaults to: []
Determines a selector in the area to become the content of a tab
Defaults to: ""
Defines a template markup to be used in a UI
Defaults to: {}
Methods
Gets the index of the currently enabled tab
Returns
- Integer
Check the parameter type of a UI method and generates an alarm when a wrong value is entered
Parameters
- name : String
Method name
- params : Array
Parameters
Sets a callback function that is called after a UI method is run
Parameters
- name : String
Method name
- callback : Function
Returns
- Mixed
Sets a callback function that is called before a UI method is run
Parameters
- name : String
Method name
- callback : Function
Returns
- Mixed
Sets a callback function and the delay time before/after a UI method is run
Parameters
- name : String
Method name
- callback : Function
Removes all events set in a UI obejct and the DOM element
Disables the tab at a specified index
Parameters
- index : Integer
Generates a custom event. The first parameter is the type of a custom event. A function defined as an option or on method is called
Parameters
- type : String
Event type
- args : Function
Event Arguments
Returns
- Mixed
Enables the tab at a specified index
Parameters
- index : Integer
Adds a tab at a specified index
Parameters
- index : Integer
- node : Object
Changes a specified tab to a tab at a target index
Parameters
- index : Integer
- targetIndex : Integer
Removes a custom event of an applicable type or callback handler
Parameters
- type : String
Event type
A callback function defined as an on method is run when an emit method is called
Parameters
- type : String
Event type
- callback : Function
Removes a tab at a specified index
Parameters
- index : Integer
Dynamically defines the options of a UI
Parameters
- key : String
- value : Mixed
Dynamically defines the template method of a UI
Parameters
- name : String
Template name
- html : String
Template markup
Enables the tab at a specified index
Parameters
- index : Integer
Events
Event that occurs when a tab is enabled
Parameters
- data : Object
changed data
- e : EventObject
The event object
Event that occurs when a tab is mouse clicked
Parameters
- data : Object
changed data
- e : EventObject
The event object
Event that occurs when the movement of a tab is completed
Parameters
- index : Integer
- e : EventObject
The event object
Event that occurs when a tab starts to move
Parameters
- index : Integer
- e : EventObject
The event object