跳至主要内容

currentUser

描述

可选。当前用户的 ID

注释

当前用户 ID 需要对应于 cardShape.users 属性中指定的某个 ID。如果未指定此 ID,评论将仅可供阅读。

用法

currentUser?: string | number; 

示例

new kanban.Kanban("#root", {
cards,
columns,
currentUser: 1,
// 其他参数
});

更新日志: 该属性在 v1.4 中添加

相关示例: Kanban. Swimlanes, comments, votes