简体   繁体   English

如何在 lightning web 组件中创建弹出窗口

[英]How to create popup in lightning web component

Page which will display New Milestone popup in the org, there should be one button for Add new milestone.将在组织中显示新里程碑弹出窗口的页面,应该有一个用于添加新里程碑的按钮。 On click of this button, popup will ask for milestone details and after click on save button this new milestone details will add to DB.单击此按钮,弹出窗口将询问里程碑详细信息,单击保存按钮后,此新里程碑详细信息将添加到数据库中。

Milestone is a custom object.里程碑是自定义object。

Create lwc component target for lightning__RecordAction.为 lightning__RecordAction 创建 lwc 组件目标。 You can place your your code there.您可以将您的代码放在那里。

If Save is not working, feel free the paste your error message, we can help better?如果保存不起作用,请随时粘贴您的错误消息,我们可以提供更好的帮助吗?

If you want to make your custom popup, see below link https://www.infallibletechie.com/2020/03/popup-using-lightning-web-component-lwc.html如果您想制作自定义弹出窗口,请参见下面的链接https://www.infallibletechie.com/2020/03/popup-using-lightning-web-component-lwc.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在没有顶点的闪电 web 组件上创建任务仅 javascript controller? - Create a task on a lightning web component without apex only javascript controller? 如何在 Visual Force Pages 中使用 Lightning Web 组件? - How to use Lightning Web Component inside Visual Force Pages? lightning web组件中如何使用reducerrors方法处理错误? - how to use reducerrors method to handle errors in lightning web component? 显示 JSON 字符串的 Lightning Web 组件不起作用 - Lightning Web Component to display JSON String is not working <noerrorobjectavailable>闪电 web 组件 (LWC) 中的脚本错误</noerrorobjectavailable> - <NoErrorObjectAvailable> Script error in lightning web component (LWC) 如何在操场上将一些简单的 styles 应用于闪电 web 组件的“数据表”的 tds? - How to apply some simple styles to tds of “datatable” of lightning web component in playground? 如何在Salesforce中将SVG用作闪电组件 - how to use svg into lightning component in Salesforce Lightning Web 组件 IF 指令是否支持多个条件? - Does Lightning Web Component IF Directive support multiple conditions? Lightning Web 组件设置动态样式未按预期工作 - Lightning Web Component setting dynamic style not working as expected 401 未经授权 REST API 中闪电 web 组件 ZA8FF6C9514C35C8563B350382 - 401 Unauthorized REST API in lightning web component salesforce
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM