API
Component

Switch ($UI/comp/antd/components/Switch/Switch)

使用范围:WX

Contents

component Switch ($UI/comp/antd/components/Switch/Switch) extends AntdComponent

<b>使用场景</b>:开关选择器,需要表示开关状态/两种状态之间的切换时。 <b>使用方法</b>:需绑定字段和绑定备选数据集、字段使用。

Constructor Top

  Switch ()

Static Properties & Enumerations Top

String EVENT_VALUE_CHANGE = "valuechange"

值改变事件

Events Top

void valuechange (ValueChangeEvent event)

Constructor details Top

public Switch ()

<b>使用场景</b>:开关选择器,需要表示开关状态/两种状态之间的切换时。 <b>使用方法</b>:需绑定字段和绑定备选数据集、字段使用。

Static Properties & Enumerations Detail Top

static public String EVENT_VALUE_CHANGE = "valuechange"

值改变事件

Events Detail Top

public void valuechange (ValueChangeEvent event)

值改变

Parameters

ValueChangeEvent event


结构如下:

{ value : 新值, oldValue : 旧值, source : 组件自身 }

Return Value

void