CascadeOptions (对象)
说明
级联字段的选项集合
方法
属性
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const options = await app.CascadeOptions();
const o1 = await options.Add("test1")
o1.Children.Add("child1")
options.Add("test2")
const desc = await app.FieldDescriptor("Cascade","级联字段")
desc.AllCascadeOption = options
app.Sheets(1).FieldDescriptors.AddField(desc, 1)
}
脚本编辑器 示例
javascript
function main() {
const options = CascadeOptions();
options.Add("test1")
options.Add("test2")
const desc = FieldDescriptor("Cascade","级联字段")
desc.AllCascadeOption = options
Application.Sheets(1).FieldDescriptors.AddField(desc, 1)
}
main()