Constructors
constructor
-
Parameters
Properties
InputId
InputId: string
checked
checked: boolean
css
css: InputSwitchStyle
onSwitchScript
onSwitchScript: string
titleFormat
titleFormat: string
value
value: string
valueFormat
valueFormat: string
Methods
Protected doGetClassName
-
Returns string
doGetCss
- doGetCss(): InputSwitchStyle
-
Returns InputSwitchStyle
Protected doGetDefautlValue
- doGetDefautlValue(): string
-
Returns string
Protected doGetElemtHtml
-
Returns string
Protected doGetVerifyTipsElem
- doGetVerifyTipsElem(): JQuery<HTMLElement>
-
Returns JQuery<HTMLElement>
doRender
-
Returns void
Protected doRenderClickAmin
- doRenderClickAmin(e: ClickEvent<any, any, any, any>): void
-
Parameters
-
e: ClickEvent<any, any, any, any>
Returns void
Protected doRenderEnable
-
Returns void
doRenderFocuse
-
Returns void
Protected doRenderInputValue
- doRenderInputValue(): void
-
Returns void
getAttrEditors
- getAttrEditors(): AttributeEditorBase[]
-
Returns AttributeEditorBase[]
Protected getFalseTitle
-
Returns string
返回标题
Protected getFalseValue
-
Returns string
返回值
getInputElem
- getInputElem(): JQuery<HTMLElement>
-
Returns JQuery<HTMLElement>
Protected getTrueTitle
-
Returns string
返回标题
Protected getTrueValue
-
Returns string
返回值
Private getVal
- getVal(values: string, defalut: string, valueType: boolean): string
-
Parameters
-
values: string
-
defalut: string
-
valueType: boolean
Returns string
getValue
-
Returns string
得到组件值
onValueChanged
- onValueChanged(callback: onSwitchChangeHandle): void
-
Parameters
-
callback: onSwitchChangeHandle
Returns void
raiseOnSwitchScript
- raiseOnSwitchScript(): void
-
Returns void
render
-
Returns void
setValue
- setValue(value: any): void
-
Parameters
Returns void
label 开关组件