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
Sider
Class Sider
Hierarchy
Widget
Sider
Implements
IWidget
Index
Constructors
constructor
Properties
_config
_event
Bus
_initial
Config
_main
El
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
destroy
get
Frame
hide
initial
Config
is
Shown
load
Html
load
Url
locale
name
off
on
reload
render
show
title
toggle
Constructors
constructor
new
Sider
(
cfg
:
SiderConfig
)
:
Sider
Parameters
cfg:
SiderConfig
Returns
Sider
Properties
Protected
_config
_config
:
WidgetConfig
<
Widget
>
= null
Protected
_event
Bus
_event
Bus
:
EventBus
Protected
_initial
Config
_initial
Config
:
WidgetConfig
<
Widget
>
= null
Protected
_main
El
_main
El
:
JQuery
<
HTMLElement
>
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
destroy
destroy
(
)
:
void
Returns
void
get
Frame
get
Frame
(
)
:
HTMLElement
Returns
HTMLElement
hide
hide
(
)
:
this
Returns
this
initial
Config
initial
Config<V>
(
key
?:
string
)
:
V
Type parameters
V
Parameters
Optional
key:
string
Returns
V
is
Shown
is
Shown
(
)
:
boolean
Returns
boolean
load
Html
load
Html
(
html
:
string
|
Element
|
JQuery
)
:
this
Parameters
html:
string
|
Element
|
JQuery
Returns
this
load
Url
load
Url
(
url
:
string
)
:
this
Parameters
url:
string
Returns
this
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
reload
reload
(
)
:
this
Returns
this
render
render<T>
(
)
:
T
Type parameters
T
:
Widget
Returns
T
show
show
(
)
:
this
Returns
this
title
title
(
)
:
string
title
(
text
:
string
)
:
this
Returns
string
Parameters
text:
string
Returns
this
toggle
toggle
(
)
:
void
Returns
void
Globals
JS
an
app
core
d2
ds
fx
input
ioc
lang
math
media
model
net
store
sugar
ui
unit
util
view
Sider
constructor
_config
_event
Bus
_initial
Config
_main
El
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
destroy
get
Frame
hide
initial
Config
is
Shown
load
Html
load
Url
locale
name
off
on
reload
render
show
title
toggle
按指定模式类型渲染