Modifications pour le document KanbanBoardMacro
Modifié par Admin le 21/07/2025 - 09:07
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
-
Objets (1 modifications, 1 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -5,6 +5,9 @@ 5 5 * ##user## [optional, default=$xcontext.userReference] define the user for who tasks are assigned 6 6 * ##space## [optional, default=TaskManager] define the space to look for tasks 7 7 * ##project## [optional, default=] define the project to look for tasks 8 +* ##colors## [optional, default=green,blue,orange] define the colors of the Kanban columns 9 +* ##columns## [optional, default=ToDo,InProgress,Done] define the statuses to display as Kanban columns 10 +* ##columnWidth## [optional, default=32%] define the width of all Kanban column 8 8 9 9 Example: 10 10
- XWiki.WikiMacroClass[1]
-
- Code de la macro
-
... ... @@ -3,6 +3,7 @@ 3 3 ## The xwql variable is used by the awmkanban macro called from this one. 4 4 #set ($xwql = '') 5 5 #set($user = "$!{xcontext.macro.params.user}") 6 +#set ($columnWidth = "$!{xcontext.macro.params.columnWidth}") 6 6 #set ($colors = "$!{xcontext.macro.params.colors}") 7 7 #if($user != '') 8 8 #set($xwql = "obj.assignee = '$escapetool.sql($user)'") ... ... @@ -21,6 +21,15 @@ 21 21 #end 22 22 #set($xwql = "$xwql obj.project = '$escapetool.sql($project)'") 23 23 #end 24 -{{awmkanban className="TaskManager.TaskManagerClass" category="status" title="name" columns="assignee,progress,duedate" width="32%" colors=$escapetool.xml($colors)/}} 25 +#set ($columns = "$!{xcontext.macro.params.columns}") 26 +{{awmkanban 27 + className="TaskManager.TaskManagerClass" 28 + category="status" 29 + displayedCategoryColumns="$!escapetool.xml($columns)" 30 + title="name" 31 + columns="assignee,progress,duedate" 32 + width="$!escapetool.xml($columnWidth)" 33 + colors=$escapetool.xml($colors) 34 +/}} 25 25 {{/velocity}} 26 26 - Default categories
-
... ... @@ -1,0 +1,1 @@ 1 +Content
- XWiki.WikiMacroParameterClass[7]
-
- Valeur par défaut du paramètre
-
... ... @@ -1,0 +1,1 @@ 1 +32% - Description du paramètre
-
... ... @@ -1,0 +1,1 @@ 1 +The width of each Kanban column, specified in any css units (example: 32%, 500px, 30em, etc..). - Paramètre obligatoire
-
... ... @@ -1,0 +1,1 @@ 1 +Non - Nom du paramètre
-
... ... @@ -1,0 +1,1 @@ 1 +columnWidth