Module: panel

基于 H5 dialog 的弹框功能
Implements:
Source:
See:

Requires

Events


close

关闭弹框
Parameters:
Name Type Description
_dialogSelector selector 要关闭的 dialog
Source:
Example
Panel.trigger( Panel.close, [ $('whichDialog') ]  )

closeFromChild

从弹框里面的按钮关闭弹框
Parameters:
Name Type Description
_childSelector selector 弹框里的按钮
Source:
Example
Panel.trigger( Panel.closeFromChild, [ $( '[data-cmd=V\\.Const\\.close\\.panel]' ).first() ]  )

show

显示弹框
Parameters:
Name Type Description
_dialogSelector selector 要显示的 dialog
_method string 显示的方法(show|showModal), 默认: show
Source:
Example
Panel.trigger( Panel.show, [ $('whichDialog') ]  )

showFromChild

从弹框里面的按钮显示弹框
Parameters:
Name Type Description
_childSelector selector 弹框里的按钮
Source:
Example
Panel.trigger( Panel.showFromChild, [ $( '[data-cmd=V\\.Const\\.close\\.panel]' ).first() ]  )

showModal

显示会话弹框
Parameters:
Name Type Description
_dialogSelector selector 要显示的 dialog
_method string 显示的方法(show|showModal), 默认: showModal
Source:
Example
Panel.trigger( Panel.showModal, [ $('whichDialog') ]  )