[英]How to create a backend module with a custom listing in shopware 6?
[英]How to hide grid action button from "sw-entity-listing" listing in shopware 6?
如何從 shopware 6 中的“sw-entity-listing”列表中隱藏網格操作按鈕(編輯、刪除)?
如果你想隱藏整個動作列,你可以使用道具showActions
來做到這showActions
。 這將是最簡單的方法。
<sw-entity-listing
:showActions="false">
</sw-entity-listing>
如果您只想隱藏“編輯”或“刪除”按鈕而不是整個操作列,您可以使用空標簽或其他內容覆蓋插槽delete-action
或detail-action
:
<sw-entity-listing>
<template #delete-action>
My content
</template>
</sw-entity-listing>
<sw-entity-listing>
<template #delete-action>
<span></span> <!-- No action here -->
</template>
</sw-entity-listing>
sw-entity-lising
組件是sw-data-grid
組件的擴展。 所以通常你也可以使用sw-data-grid
所有道具。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.