File tree Expand file tree Collapse file tree 3 files changed +56
-19
lines changed Expand file tree Collapse file tree 3 files changed +56
-19
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"cardData" : [
3
3
{
4
- "Id " : " Task 1" ,
4
+ "id " : " Task 1" ,
5
5
"label" : " Task - 29001" ,
6
- "Title" : " Task - 29001" ,
7
- "Status" : " Open" ,
8
- "Summary" : " Analyze customer requirements." ,
9
- "Priority" : " High" ,
10
- "Tags" : " Bug, Release Bug" ,
11
- "RankId" : 1 ,
12
- "Assignee" : " Nancy Davloio"
6
+ "status" : " Open" ,
7
+ "summary" : " Analyze customer requirements." ,
8
+ "priority" : " High" ,
9
+ "tags" : " Bug, Release Bug" ,
10
+ "rankId" : 1 ,
11
+ "assignee" : " Nancy Davloio"
13
12
},
14
13
{
15
- "Id " : " Task 2" ,
14
+ "id " : " Task 2" ,
16
15
"label" : " Task - 29002" ,
17
- "Title" : " Task - 29002" ,
18
- "Status" : " InProgress" ,
19
- "Summary" : " Add responsive support to applicaton" ,
20
- "Priority" : " Low" ,
21
- "Tags" : " Story, Kanban" ,
22
- "RankId" : 1 ,
23
- "Assignee" : " Nancy Davloio"
16
+ "status" : " InProgress" ,
17
+ "summary" : " Add responsive support to applicaton" ,
18
+ "priority" : " Low" ,
19
+ "tags" : " Story, Kanban" ,
20
+ "rankId" : 1 ,
21
+ "assignee" : " Nancy Davloio"
22
+ }
23
+ ],
24
+ "statusOptions" : [
25
+ {
26
+ "label" : " To Do" ,
27
+ "value" : " Open"
28
+ },
29
+ {
30
+ "label" : " In Progress" ,
31
+ "value" : " InProgress"
32
+ },
33
+ {
34
+ "label" : " In Review" ,
35
+ "value" : " Review"
36
+ },
37
+ {
38
+ "label" : " Done" ,
39
+ "value" : " Close"
40
+ }
41
+ ],
42
+ "assigneeOptions" : [
43
+ {
44
+ "id" : " 1" ,
45
+ "name" : " Nancy Davloio"
46
+ },
47
+ {
48
+ "id" : " 1" ,
49
+ "name" : " Andrew Fuller"
24
50
}
25
51
]
26
52
}
Original file line number Diff line number Diff line change @@ -16,9 +16,16 @@ export const KanbanPropertyView = React.memo((props: Props) => {
16
16
< >
17
17
< Section name = "Basic" >
18
18
{ children . data . propertyView ( { } ) }
19
- { /* {children.data.propertyView({ label: "Data" }) } */ }
20
- { children . cardView . getPropertyView ( ) }
19
+ { children . statusOptions . propertyView ( {
20
+ label : 'Status Options'
21
+ } ) }
22
+ { children . assigneeOptions . propertyView ( {
23
+ label : 'Assignee Options'
24
+ } ) }
21
25
</ Section >
26
+ < Section name = "Card View" >
27
+ { children . cardView . getPropertyView ( ) }
28
+ </ Section >
22
29
< Section name = "Interaction" >
23
30
{ children . onEvent . propertyView ( ) }
24
31
</ Section >
Original file line number Diff line number Diff line change @@ -5,13 +5,16 @@ import {
5
5
styleControl ,
6
6
AutoHeightControl ,
7
7
BoolControl ,
8
+ jsonControl ,
9
+ toJSONObjectArray ,
8
10
uiChildren ,
9
11
RecordConstructorToComp ,
10
12
RecordConstructorToView ,
11
13
} from 'lowcoder-sdk' ;
12
14
import { trans } from "./i18n/comps" ;
13
15
import { KanbanOptionControl } from './kanbanOptionsControl' ;
14
16
import { CardViewControl } from './cardViewControl' ;
17
+ import * as dataSource from "./datasource.json" ;
15
18
16
19
type RecordConstructorToComp < T > = typeof RecordConstructorToComp ;
17
20
type RecordConstructorToView < T > = typeof RecordConstructorToView ;
@@ -117,8 +120,9 @@ const childrenMap = {
117
120
} ,
118
121
] as const ) ,
119
122
cardContentStyles : styleControl ( CompStyles ) ,
123
+ statusOptions : jsonControl ( toJSONObjectArray , dataSource . statusOptions ) ,
124
+ assigneeOptions : jsonControl ( toJSONObjectArray , dataSource . assigneeOptions ) ,
120
125
cardView : CardViewControl ,
121
- // data: jsonValueExposingStateControl("data", dataSource.cardData),
122
126
} ;
123
127
124
128
export const KanbanInitComp = ( function ( ) {
You can’t perform that action at this time.
0 commit comments