is it possible to include files in the touch UI dialog?

别来无恙 提交于 2019-12-12 17:20:41

问题


is it possible to include files in a touch UI dialog? I understand how to include a file inside the classic UI dialog which I've gave an example below. Is this possible for Touch UI dialog if so how do I accomplish this?

<livecopy
    jcr:primaryType="cq:Widget"
    path="/apps/stackoverflow/components/page/page/tab_stackoverflow.infinity.json"
    xtype="cqinclude"/>

回答1:


Yes. Use the resource type granite/ui/components/foundation/include to do similar operation in Touch UI.

<livecopy
    jcr:primaryType="nt:unstructured"
    path="/apps/stackoverflow/components/page/page/tab_stackoverflow"
    sling:resourceType="granite/ui/components/foundation/include"/>

For more information check the ExtJS vs matching Granite UI components topic and the Granite Include documentation.



来源:https://stackoverflow.com/questions/33129828/is-it-possible-to-include-files-in-the-touch-ui-dialog

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!