Изменения документа KanbanMacro
Редактировал(а) Anton Krivchenkov 30.03.2026 23:03
От версии 3.1
отредактировано Anton Krivchenkov
на 31.10.2025 18:10
на 31.10.2025 18:10
Изменить комментарий:
Migrated property [featureMandatory] from class [XWiki.WikiMacroParameterClass]
К версии 5.1
отредактировано Anton Krivchenkov
на 30.03.2026 23:03
на 30.03.2026 23:03
Изменить комментарий:
Install extension [org.xwiki.contrib:macro-kanban/1.4.3]
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
-
Объекты (3 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -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.JavaScriptExtension[0]
-
- Код
-
... ... @@ -27,7 +27,7 @@ 27 27 * jKanban 28 28 * Vanilla Javascript plugin for manage kanban boards 29 29 * 30 - * @ site: http://www.riccardotartaglia.it/jkanban/30 + * @url: http://www.riccardotartaglia.it/jkanban/ 31 31 * @author: Riccardo Tartaglia 32 32 */ 33 33 ... ... @@ -334,14 +334,12 @@ 334 334 nodeItem.dropfn = itemKanban.drop; 335 335 nodeItem.dataset.eid = itemKanban.id; 336 336 337 - var nodeItemTitle = document.createElement('div'); 337 + var nodeItemTitle = document.createElement(itemKanban.url ? 'a' : 'div'); 338 338 nodeItemTitle.classList.add('kanban-item-title'); 339 339 nodeItemTitle.innerHTML = itemKanban.title; 340 340 nodeItemTitle.clickfn = itemKanban.click; 341 341 if (itemKanban.url) { 342 - nodeItemTitle.addEventListener('click', function (e) { 343 - location = this.url; 344 - }.bindAsEventListener(itemKanban)); 342 + nodeItemTitle.href = itemKanban.url; 345 345 } else { 346 346 // add click handler of item 347 347 __onclickHandler(nodeItemTitle);
- XWiki.StyleSheetExtension[0]
-
- Код
-
... ... @@ -79,6 +79,8 @@ 79 79 80 80 .kanban-item-title { 81 81 margin: 5px; 82 + word-wrap: break-word; 83 + overflow-wrap: break-word; 82 82 } 83 83 84 84 .kanban-item:hover {
- XWiki.WikiMacroClass[0]
-
- Код
-
... ... @@ -16,7 +16,7 @@ 16 16 <script type="text/javascript"> 17 17 require.config({ 18 18 paths: { 19 - jkanban: '$xwiki.getURL("Macros.KanbanMacro", "jsx", "language=${xcontext.la nguage}")'19 + jkanban: '$xwiki.getURL("Macros.KanbanMacro", "jsx", "language=${xcontext.locale}")' 20 20 } 21 21 }); 22 22 require(['jquery','jkanban'], function(jQuery) { ... ... @@ -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 });