aem-touch-ui - 隐藏/显示功能不适用于 AEM 中的文件上传资源类型
问题描述
我在 AEM 6.3 中为触摸 UI 对话框实现隐藏/显示功能,之前有一个路径浏览器来呈现图像,但现在我已经使用文件上传作为资源类型更新了它。与 pathbrowser 一起正常工作的 hide/show 的现有功能现在不仅适用于 fileupload resourceType。感谢您对上述查询的任何快速回答。
谢谢, 阿润墨志
解决方案
请尝试使用像“fieldset”这样的包装节点。
<showHideWrapper
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fieldset"
class="hide showHideWrapper-showhide-target"
showhidetargetvalue="OPAQUE">
<items
jcr:primaryType="nt:unstructured">
.... there is your fileUpload field
</items>
</showHideWrapper>
推荐阅读
- swift - 未调用推送通知“willPresent”但“didReceive”有效
- python - 正则表达式查找完全匹配
- python - 放置到另一个按钮时如何获取按钮的新位置?
- python - 如何从 .xlsx 文档中获取一系列单元格,同时保留其格式?
- c# - StreamWriter 到多个文件
- javascript - 无法在 HTML 中嵌入徽章
- c# - 两种身份验证方法 C# 和 ASP.NET MVC
- encoding - 当文件编码为“无”时,如何处理 DXL 文件数据元素?
- rabbitmq - 公开 Rancher 托管应用的帖子
- python - Python 3、VS 代码和 utf-8 产生错误