0 Votes

Changes for page KanbanMacro

Last modified by Ryan C on 2025/07/17 22:45

From version 5.1
edited by Ryan C
on 2025/06/04 14:23
Change comment: Install extension [org.xwiki.contrib:macro-kanban/1.4.0]
To version 6.1
edited by Ryan C
on 2025/07/17 22:45
Change comment: Install extension [org.xwiki.contrib:macro-kanban/1.4.1]

Summary

Details

Page properties
Content
... ... @@ -2,7 +2,7 @@
2 2  The macro can take the JSON of the kanban either from the content of the macro or from an URL. There is also the [[xwiki:Macros.AWMKanbanMacro]] allowing to display a kanban board from AppWithinMinutes data.
3 3  
4 4  ##{{{
5 -{{kanban width="30%" source="" updateService="" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}}
5 +{{kanban width="30%" source="" updateService="" addBoardButton="true" addItemButton="true" removeBoardButton="true" addRemoveButton="true"}}
6 6  [
7 7   {"id":"board1","title":"To Do","color":"red","item":[{"title":"Item 1"},{"title":"Item 2"}]},
8 8   {"id":"board2","title":"Working","color":"blue","item":[{"title":"Item 3"},{"title":"Item 4"}]},
... ... @@ -19,7 +19,7 @@
19 19  * ##addBoardButton## display the add Board button (default true)
20 20  * ##addItemButton## display the add Item button (default true)
21 21  * ##removeBoardButton## display the remove Board button (default true)
22 -* ##removeBoardItem## allow removing Item by drag and dropping them out of a board (default true)
22 +* ##addRemoveButton## allow removing Item by drag and dropping them out of a board (default true)
23 23  
24 24  == Example ==
25 25  
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -198,8 +198,8 @@
198 198  #if($xcontext.macro.params.removeBoardButton)
199 199   removeBoardButton: ${xcontext.macro.params.removeBoardButton},
200 200  #end
201 -#if($xcontext.macro.params.removeItemButton)
202 - removeItemButton: ${xcontext.macro.params.removeItemButton},
201 +#if($xcontext.macro.params.addRemoveButton)
202 + addRemoveButton: ${xcontext.macro.params.addRemoveButton},
203 203  #end
204 204   boards: boards
205 205   });

XWiki AI Chat