0 Голосов

Изменения документа KanbanMacro

Редактировал(а) Anton Krivchenkov 30.03.2026 23:03

От версии 4.1
отредактировано Anton Krivchenkov
на 08.01.2026 13:01
Изменить комментарий: Install extension [org.xwiki.contrib:macro-kanban/1.4.2]
К версии 2.1
отредактировано Anton Krivchenkov
на 31.10.2025 18:10
Изменить комментарий: Migrated property [executionIsolated] from class [XWiki.WikiMacroClass]

Сводка

Подробности

Свойства страницы
Содержимое
... ... @@ -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" addRemoveButton="true"}}
5 +{{kanban width="30%" source="" updateService="" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="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 -* ##addRemoveButton## allow removing Item by drag and dropping them out of a board (default true)
22 +* ##removeBoardItem## allow removing Item by drag and dropping them out of a board (default true)
23 23  
24 24  == Example ==
25 25  
XWiki.StyleSheetExtension[0]
Код
... ... @@ -79,8 +79,6 @@
79 79  
80 80  .kanban-item-title {
81 81   margin: 5px;
82 - word-wrap: break-word;
83 - overflow-wrap: break-word;
84 84  }
85 85  
86 86  .kanban-item:hover {
XWiki.WikiMacroClass[0]
Код
... ... @@ -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.addRemoveButton)
202 - addRemoveButton: ${xcontext.macro.params.addRemoveButton},
201 +#if($xcontext.macro.params.removeItemButton)
202 + removeItemButton: ${xcontext.macro.params.removeItemButton},
203 203  #end
204 204   boards: boards
205 205   });