|
| 1 | +<script > |
| 2 | + import {KanbanComponent, ColumnsDirective, ColumnDirective} from '@syncfusion/ej2-vue-kanban' |
| 3 | + import {DataManager, ODataAdaptor} from '@syncfusion/ej2-data' |
| 4 | + export default { |
| 5 | + name: "App", |
| 6 | + components: { |
| 7 | + 'ejs-kanban': KanbanComponent, |
| 8 | + 'e-columns': ColumnsDirective, |
| 9 | + 'e-column': ColumnDirective |
| 10 | + }, |
| 11 | + data() |
| 12 | + { |
| 13 | + return{ |
| 14 | + kanbanData: new DataManager( |
| 15 | + { |
| 16 | + url:'https://ej2services.syncfusion.com/production/web-services/api/Kanban', |
| 17 | + adaptor:new ODataAdaptor(), |
| 18 | + crossDomain:true |
| 19 | + } |
| 20 | + ), |
| 21 | + // [ |
| 22 | + // { |
| 23 | + // 'Id': 1, |
| 24 | + // 'Status': 'Open', |
| 25 | + // 'Summary': 'Analyze the new requirements gathered from the customer.', |
| 26 | + // 'Type': 'Story', |
| 27 | + // 'Priority': 'Low', |
| 28 | + // 'Tags': 'Analyze,Customer', |
| 29 | + // 'Estimate': 3.5, |
| 30 | + // 'Assignee': 'Nancy Davloio', |
| 31 | + // 'RankId': 1 |
| 32 | + // }, |
| 33 | + // { |
| 34 | + // 'Id': 2, |
| 35 | + // 'Status': 'InProgress', |
| 36 | + // 'Summary': 'Improve application performance', |
| 37 | + // 'Type': 'Improvement', |
| 38 | + // 'Priority': 'Normal', |
| 39 | + // 'Tags': 'Improvement', |
| 40 | + // 'Estimate': 6, |
| 41 | + // 'Assignee': 'Andrew Fuller', |
| 42 | + // 'RankId': 1 |
| 43 | + // }, |
| 44 | + // { |
| 45 | + // 'Id': 3, |
| 46 | + // 'Status': 'Testing', |
| 47 | + // 'Summary': 'Arrange a web meeting with the customer to get new requirements.', |
| 48 | + // 'Type': 'Others', |
| 49 | + // 'Priority': 'Critical', |
| 50 | + // 'Tags': 'Meeting', |
| 51 | + // 'Estimate': 5.5, |
| 52 | + // 'Assignee': 'Janet Leverling', |
| 53 | + // 'RankId': 2 |
| 54 | + // }, |
| 55 | + // { |
| 56 | + // 'Id': 4, |
| 57 | + // 'Status': 'Close', |
| 58 | + // 'Summary': 'Fix the issues reported in the IE browser.', |
| 59 | + // 'Type': 'Bug', |
| 60 | + // 'Priority': 'Release Breaker', |
| 61 | + // 'Tags': 'IE', |
| 62 | + // 'Estimate': 2.5, |
| 63 | + // 'Assignee': 'Janet Leverling', |
| 64 | + // 'RankId': 2 |
| 65 | + // }, |
| 66 | + // { |
| 67 | + // 'Id': 5, |
| 68 | + // 'Status': 'Open', |
| 69 | + // 'Summary': 'Fix the issues reported by the customer.', |
| 70 | + // 'Type': 'Bug', |
| 71 | + // 'Priority': 'Low', |
| 72 | + // 'Tags': 'Customer', |
| 73 | + // 'Estimate': '3.5', |
| 74 | + // 'Assignee': 'Steven walker', |
| 75 | + // 'RankId': 1 |
| 76 | + // }, |
| 77 | + // { |
| 78 | + // 'Id': 6, |
| 79 | + // 'Status': 'InProgress', |
| 80 | + // 'Summary': 'Arrange a web meeting with the customer to get the login page requirements.', |
| 81 | + // 'Type': 'Others', |
| 82 | + // 'Priority': 'Low', |
| 83 | + // 'Tags': 'Meeting', |
| 84 | + // 'Estimate': 2, |
| 85 | + // 'Assignee': 'Michael Suyama', |
| 86 | + // 'RankId': 1 |
| 87 | + // }, |
| 88 | + // { |
| 89 | + // 'Id': 7, |
| 90 | + // 'Status': 'Testing', |
| 91 | + // 'Summary': 'Validate new requirements', |
| 92 | + // 'Type': 'Improvement', |
| 93 | + // 'Priority': 'Low', |
| 94 | + // 'Tags': 'Validation', |
| 95 | + // 'Estimate': 1.5, |
| 96 | + // 'Assignee': 'Robert King', |
| 97 | + // 'RankId': 1 |
| 98 | + // }, |
| 99 | + // { |
| 100 | + // 'Id': 8, |
| 101 | + // 'Status': 'Close', |
| 102 | + // 'Summary': 'Login page validation', |
| 103 | + // 'Type': 'Story', |
| 104 | + // 'Priority': 'Release Breaker', |
| 105 | + // 'Tags': 'Validation,Fix', |
| 106 | + // 'Estimate': 2.5, |
| 107 | + // 'Assignee': 'Laura Callahan', |
| 108 | + // 'RankId': 2 |
| 109 | + // } |
| 110 | + // ], |
| 111 | + cardSettings:{ |
| 112 | + contentField:"Summary", |
| 113 | + headerField:"Id" |
| 114 | + }, |
| 115 | + swimlaneSettings:{ |
| 116 | + keyField:"Assignee" |
| 117 | + } |
| 118 | + } |
| 119 | + } |
| 120 | +} |
| 121 | +</script> |
| 122 | + |
| 123 | +<template> |
| 124 | + <ejs-kanban :dataSource="kanbanData" keyField="Status" :cardSettings="cardSettings" |
| 125 | + height="100%" |
| 126 | + width="100%" |
| 127 | + :swimlaneSettings="swimlaneSettings" |
| 128 | + :enableTooltip="true" |
| 129 | + > |
| 130 | + <e-columns> |
| 131 | + <e-column headerText="To Do" keyField="Open" maxCount="1"></e-column> |
| 132 | + <e-column headerText="In Progress" keyField="InProgress"></e-column> |
| 133 | + <e-column headerText="Review" keyField="Review" ></e-column> |
| 134 | + <e-column headerText="Testing" keyField="Testing" minCount="3"></e-column> |
| 135 | + <e-column headerText="Done" keyField="Close"></e-column> |
| 136 | + </e-columns> |
| 137 | + </ejs-kanban> |
| 138 | +</template> |
| 139 | + |
| 140 | +<style> |
| 141 | +@import '../node_modules/@syncfusion/ej2-base/styles/material.css'; |
| 142 | +@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css'; |
| 143 | +@import '../node_modules/@syncfusion/ej2-layouts/styles/material.css'; |
| 144 | +@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css'; |
| 145 | +@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css'; |
| 146 | +@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css'; |
| 147 | +@import '../node_modules/@syncfusion/ej2-popups/styles/material.css'; |
| 148 | +@import '../node_modules/@syncfusion/ej2-vue-kanban/styles/material.css'; |
| 149 | +</style> |
0 commit comments