用于删除的工具栏项-用于2sxc模块 [英] Toolbar item for delete - for 2sxc module

查看:64
本文介绍了用于删除的工具栏项-用于2sxc模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为 2sxc.org 应用= nofollow> DNN ,并且不知道如何允许用户删除内容项?

I create 2sxc.org app for DNN and don't know how to allow a user to delete the content item?

是否有一些工具栏摘要,如: p>

Is there some toolbar snippet like:

@Edit.Toolbar(Content, actions: "edit,replace")

还要创建删除按钮吗?

如果没有这样的命令,如何手动创建?

If there is no such command, how can be manually created? Any guidance?

推荐答案

此处列出了完整的操作列表

The full list of actions is listed here

https://github.com/2sic/2sxc/ blob / master / src / inpage / 2sxc._actions.js

所以只需使用

@Edit.Toolbar(Content, actions: "edit,replace,remove");

原因是尚未实施删除,因为它具有一些复杂的&后果深远。因此,当前按钮只会将其删除。

The reason is that delete is not implemented yet, as it has some complex & far reaching consequences. So the current button only removes it.

这篇关于用于删除的工具栏项-用于2sxc模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆