CascadeOption.Children(属性)
说明
可读写
级联字段选项的子选项集合
返回值
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()