JUI(Simple UI & Chart Component)

ui.tab

Hierarchy

core
ui.tab

Requires

jquery

Files

Defined By

Config options

: Boolean
Changes the tab location through dragging ...

Changes the tab location through dragging

Defaults to: false

Defines a DOM event to be used in a UI ...

Defines a DOM event to be used in a UI

Defaults to: {}

: Integer
Sets an enabled tab ...

Sets an enabled tab

Defaults to: 0

: Array
Sets a tab list to data rather than markup ...

Sets a tab list to data rather than markup

Defaults to: []

: String/DOMElement
Determines a selector in the area to become the content of a tab ...

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 ...

Defines a template markup to be used in a UI

Defaults to: {}

Defined By

Methods

( ) : Integer
Gets the index of the currently enabled tab ...

Gets the index of the currently enabled tab

Returns

  • Integer
( name, params )
Check the parameter type of a UI method and generates an alarm when a wrong value is entered ...

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

( node )
Adds a tab to the last node ...

Adds a tab to the last node

Parameters

  • node : Object
( name, callback ) : Mixed
Sets a callback function that is called after a UI method is run ...

Sets a callback function that is called after a UI method is run

Parameters

  • name : String

    Method name

  • callback : Function

Returns

  • Mixed
( name, callback ) : Mixed
Sets a callback function that is called before a UI method is run ...

Sets a callback function that is called before a UI method is run

Parameters

  • name : String

    Method name

  • callback : Function

Returns

  • Mixed
( name, callback )
Sets a callback function and the delay time before/after a UI method is run ...

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 ...

Removes all events set in a UI obejct and the DOM element

( index )
Disables the tab at a specified index ...

Disables the tab at a specified index

Parameters

  • index : Integer
( type, args ) : Mixed
Generates a custom event. ...

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
( index )
Enables the tab at a specified index ...

Enables the tab at a specified index

Parameters

  • index : Integer
( index, node )
Adds a tab at a specified index ...

Adds a tab at a specified index

Parameters

  • index : Integer
  • node : Object
( index, targetIndex )
Changes a specified tab to a tab at a target index ...

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 ...

Removes a custom event of an applicable type or callback handler

Parameters

  • type : String

    Event type

( type, callback )
A callback function defined as an on method is run when an emit method is called ...

A callback function defined as an on method is run when an emit method is called

Parameters

  • type : String

    Event type

  • callback : Function
( node )
Adds a tab to the first node ...

Adds a tab to the first node

Parameters

  • node : Object
( index )
Removes a tab at a specified index ...

Removes a tab at a specified index

Parameters

  • index : Integer
Dynamically defines the options of a UI ...

Dynamically defines the options of a UI

Parameters

  • key : String
  • value : Mixed
( name, html )
Dynamically defines the template method of a UI ...

Dynamically defines the template method of a UI

Parameters

  • name : String

    Template name

  • html : String

    Template markup

( index )
Enables the tab at a specified index ...

Enables the tab at a specified index

Parameters

  • index : Integer
( nodes )
Changes the tab list ...

Changes the tab list

Parameters

  • nodes : Array
Defined By

Events

( data, e )
Event that occurs when a tab is enabled ...

Event that occurs when a tab is enabled

Parameters

  • data : Object

    changed data

  • e : EventObject

    The event object

( data, e )
Event that occurs when a dropdown is selected ...

Event that occurs when a dropdown is selected

Parameters

  • data : Object

    changed data

  • e : EventObject

    The event object

( data, e )
Event that occurs when a tab is mouse clicked ...

Event that occurs when a tab is mouse clicked

Parameters

  • data : Object

    changed data

  • e : EventObject

    The event object

( index, e )
Event that occurs when the movement of a tab is completed ...

Event that occurs when the movement of a tab is completed

Parameters

  • index : Integer
  • e : EventObject

    The event object

( index, e )
Event that occurs when a tab starts to move ...

Event that occurs when a tab starts to move

Parameters

  • index : Integer
  • e : EventObject

    The event object

( data, e )
Event which occurs when tab menu shown ...

Event which occurs when tab menu shown

Parameters

  • data : Object

    changed data

  • e : EventObject

    The event object