Search
Preparing search index...
The search index is not available
JSDK 2.7.0 API
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
JS
fx
Tab
Class Tab
Hierarchy
Widget
Tab
Implements
IWidget
Index
Constructors
constructor
Properties
_config
_event
Bus
_initial
Config
id
widget
El
I18N
Methods
_destroy
_each
Mode
_fire
_has
Face
Mode
_i18n
_init
Dom
_on
After
Init
_on
After
Render
_on
Before
Init
_on
Before
Render
_render
active
Tab
add
Tab
clear
destroy
disable
Tab
enable
Tab
get
Active
Index
hide
hide
Tab
initial
Config
is
Actived
Tab
is
Enabled
Tab
is
Shown
is
Shown
Tab
length
locale
name
off
on
remove
Tab
remove
Tab
Heading
render
show
show
Tab
tabs
Constructors
constructor
new
Tab
(
cfg
:
TabConfig
)
:
Tab
Parameters
cfg:
TabConfig
Returns
Tab
Properties
Protected
_config
_config
:
WidgetConfig
<
Widget
>
= null
Protected
_event
Bus
_event
Bus
:
EventBus
Protected
_initial
Config
_initial
Config
:
WidgetConfig
<
Widget
>
= null
Readonly
id
id
:
string
widget
El
widget
El
:
JQuery
<
HTMLElement
>
Static
I18N
I18N
:
I18NResource
|
URLString
= null
Methods
Protected
_destroy
_destroy
(
)
:
void
Returns
void
Protected
_each
Mode
_each
Mode
(
type
:
"sizeMode"
|
"colorMode"
|
"faceMode"
, fn
:
(
this
:
Widget
, mode
:
string
)
=>
void
, cfg
?:
WidgetConfig
<
Widget
>
)
:
void
按指定模式类型渲染
Parameters
type:
"sizeMode"
|
"colorMode"
|
"faceMode"
模式类型
fn:
(
this
:
Widget
, mode
:
string
)
=>
void
渲染函数
(
this
:
Widget
, mode
:
string
)
:
void
Parameters
this:
Widget
mode:
string
Returns
void
Optional
cfg:
WidgetConfig
<
Widget
>
Returns
void
Protected
_fire
_fire<E>
(
e
:
E
, args
?:
Array
<
any
>
)
:
void
Type parameters
E
Parameters
e:
E
Optional
args:
Array
<
any
>
Returns
void
Protected
_has
Face
Mode
_has
Face
Mode
(
key
:
string
, cfg
?:
WidgetConfig
<
Widget
>
)
:
boolean
是否包含指定模式
Parameters
key:
string
模式键值
Optional
cfg:
WidgetConfig
<
Widget
>
Returns
boolean
Protected
_i18n
_i18n
(
)
:
JsonObject
_i18n<T>
(
key
:
string
)
:
T
Returns
JsonObject
Type parameters
T
Parameters
key:
string
Returns
T
Protected
_init
Dom
_init
Dom
(
)
:
void
初始化DOM
Returns
void
Protected
_on
After
Init
_on
After
Init
(
)
:
void
在父类构造函数中的初始化之后,由子类重载实现
Returns
void
Protected
_on
After
Render
_on
After
Render
(
)
:
void
Returns
void
Protected
_on
Before
Init
_on
Before
Init
(
)
:
void
在父类构造函数中的初始化之前,由子类重载实现
Returns
void
Protected
_on
Before
Render
_on
Before
Render
(
)
:
void
Returns
void
Protected
_render
_render
(
)
:
void
Returns
void
active
Tab
active
Tab
(
num
:
number
)
:
this
Parameters
num:
number
Returns
this
add
Tab
add
Tab
(
tabs
:
TabItem
|
TabItem
[]
, from
?:
number
)
:
this
Parameters
tabs:
TabItem
|
TabItem
[]
Optional
from:
number
Returns
this
clear
clear
(
)
:
this
Returns
this
destroy
destroy
(
)
:
void
Returns
void
disable
Tab
disable
Tab
(
num
:
number
)
:
this
Parameters
num:
number
Returns
this
enable
Tab
enable
Tab
(
num
:
number
)
:
this
Parameters
num:
number
Returns
this
get
Active
Index
get
Active
Index
(
)
:
number
Returns
number
hide
hide
(
)
:
this
Returns
this
hide
Tab
hide
Tab
(
num
:
number
)
:
this
Parameters
num:
number
Returns
this
initial
Config
initial
Config<V>
(
key
?:
string
)
:
V
Type parameters
V
Parameters
Optional
key:
string
Returns
V
is
Actived
Tab
is
Actived
Tab
(
num
:
number
)
:
boolean
Parameters
num:
number
Returns
boolean
is
Enabled
Tab
is
Enabled
Tab
(
num
:
number
)
:
boolean
Parameters
num:
number
Returns
boolean
is
Shown
is
Shown
(
)
:
boolean
Returns
boolean
is
Shown
Tab
is
Shown
Tab
(
num
:
number
)
:
boolean
Parameters
num:
number
Returns
boolean
length
length
(
)
:
number
Returns
number
locale
locale
(
)
:
string
locale
(
locale
:
string
)
:
this
Returns
string
Parameters
locale:
string
Returns
this
name
name
(
)
:
string
返回控件name属性
Returns
string
off
off
(
types
?:
string
)
:
this
Parameters
Optional
types:
string
Returns
this
on
on<H>
(
types
:
string
, fn
:
H
, once
?:
boolean
)
:
this
Type parameters
H
Parameters
types:
string
fn:
H
Optional
once:
boolean
Returns
this
remove
Tab
remove
Tab
(
num
:
number
)
:
this
Parameters
num:
number
Returns
this
remove
Tab
Heading
remove
Tab
Heading
(
heading
:
string
)
:
this
Parameters
heading:
string
Returns
this
render
render<T>
(
)
:
T
Type parameters
T
:
Widget
Returns
T
show
show
(
)
:
this
Returns
this
show
Tab
show
Tab
(
num
:
number
)
:
this
Parameters
num:
number
Returns
this
tabs
tabs
(
)
:
TabItem
[]
tabs
(
items
:
TabItem
[]
)
:
this
Returns
TabItem
[]
Parameters
items:
TabItem
[]
Returns
this
Globals
JS
an
app
core
d2
ds
fx
input
ioc
lang
math
media
model
net
store
sugar
ui
unit
util
view
Tab
constructor
_config
_event
Bus
_initial
Config
id
widget
El
I18N
_destroy
_each
Mode
_fire
_has
Face
Mode
_i18n
_init
Dom
_on
After
Init
_on
After
Render
_on
Before
Init
_on
Before
Render
_render
active
Tab
add
Tab
clear
destroy
disable
Tab
enable
Tab
get
Active
Index
hide
hide
Tab
initial
Config
is
Actived
Tab
is
Enabled
Tab
is
Shown
is
Shown
Tab
length
locale
name
off
on
remove
Tab
remove
Tab
Heading
render
show
show
Tab
tabs