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
Dialog
Class Dialog
Hierarchy
Widget
Dialog
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
buttons
child
destroy
hide
initial
Config
is
Shown
load
locale
name
off
on
render
show
toggle
Constructors
constructor
new
Dialog
(
config
:
DialogConfig
)
:
Dialog
Parameters
config:
DialogConfig
Returns
Dialog
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
buttons
buttons
(
)
:
JQuery
Returns
JQuery
child
child<T>
(
id
?:
string
)
:
T
Type parameters
T
Parameters
Optional
id:
string
Returns
T
destroy
destroy
(
)
:
void
Returns
void
hide
hide<Dialog>
(
)
:
this
Type parameters
Dialog
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
load
(
api
?:
string
, params
?:
JsonObject
, encode
?:
boolean
)
:
void
Parameters
Optional
api:
string
Optional
params:
JsonObject
Optional
encode:
boolean
Returns
void
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
render
render<T>
(
)
:
T
Type parameters
T
:
Widget
Returns
T
show
show<Dialog>
(
)
:
this
Type parameters
Dialog
Returns
this
toggle
toggle
(
)
:
this
Returns
this
Globals
JS
an
app
core
d2
ds
fx
input
ioc
lang
math
media
model
net
store
sugar
ui
unit
util
view
Dialog
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
buttons
child
destroy
hide
initial
Config
is
Shown
load
locale
name
off
on
render
show
toggle
按指定模式类型渲染