在Salesforce中将自定义组件的用户配置字段放在何处

时间:2018-07-03 09:23:13

标签: salesforce salesforce-lightning

我建立了一个自定义的闪电组件,该组件嵌入在“记录”页面中,但是我无法从文档中找出如何为用户设置配置区域以放置其组件数据的方法。有人可以指出我正确的方向吗?

1 个答案:

答案 0 :(得分:0)

documentation

  

使用设计资源来控制向构建器工具(如Lightning App Builder,社区构建器或Cloud Flow Designer)公开哪些属性。设计资源与.cmp资源位于同一文件夹中,并描述了Lightning组件的设计时行为-可视化工具需要在页面或应用程序中显示该组件的信息。

这是该页面上的示例:

<design:component label="Hello World">
    <design:attribute name="subject" label="Subject" description="Name of the person you want to greet" />
    <design:attribute name="greeting" label="Greeting" />
</design:component>

按照这些说明,用户将能够在Lightning App Builder中配置输入数据。