salesforce - 使用广播组切换 LWC 中的内容?
问题描述
我有这个单选组,如果我选择顶部选项,则只显示前两行,如果我选择底部选项,则只显示最后一行。如何在 LWC 中创建这种动态的选项卡选择?
解决方案
您正在寻找的内容记录在这里:https ://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.create_conditional
这看起来像这样:
<template if:true={topIsSelected}>
<!-- first top two rows -->
</template>
<template if:true={bottomIsSelected}>
<!-- last row -->
</template>
推荐阅读
- chipmunk - Pymunk 中的速度单位
- python-3.x - python解包嵌套字典并将键和值存储在元组中
- reactjs - React-Intl 依赖于 url
- python - 点出现在 spyder 但不在 jupyter 笔记本中
- google-chrome - 未找到 Web vr chrome
- c++ - 无效合并中的错误
- javascript - javascript中的等待异步调用在Node js中没有console.log
- vba - 删除自定义 VBA
- nuget - 使用 Cake 创建 Nuget 包并仅打包 dll
- bootstrap-4 - “装订线”或具有最小边距/填充的固定宽度列