跳到主要内容

SetButtonDisabled

按索引启用或禁用模态插件的页脚按钮。

语法​

expression.SetButtonDisabled(index, isDisabled);

expression - 表示 Api 类的变量。

参数​

名称必需/可选数据类型默认值描述
index必需numberconfig.json 中 buttons 数组内的按钮索引(从 0 开始)。
isDisabled必需boolean指定是禁用 (true) 还是启用 (false) 该按钮。

返回值​

此方法不返回任何数据。