File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
packages/components/_templates/power-apps/new Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -10,21 +10,32 @@ force: true
10
10
control-type =" standard" >
11
11
12
12
<% if (locals .props ){ locals .props .forEach ((prop )=> { -% >
13
- < property name= " <%= prop.name %>" display- name- key= " <%= prop.name %>_Display_Key"
13
+ < property name= " <%= prop.name %>"
14
+
15
+ < % if (typeof prop .displayNameKey !== ' undefined' && prop .displayNameKey ){ -% >
16
+ display- name- key= " <%= prop.displayNameKey %>"
17
+ < % } else { -% >
18
+ display- name- key= " <%= prop.name %>_Display_Key"
19
+ < % } -% >
20
+
14
21
description- key= " <%= prop.name %>_Desc_Key"
15
22
16
23
< % if (typeof prop .onChange !== ' undefined' && prop .onChange ){ -% >
17
24
usage= " bound"
18
- < % } else { -% >
25
+ < % } else { -% >
19
26
usage= " input"
20
27
< % } -% >
21
28
22
29
< % if (typeof prop .required !== ' undefined' && prop .required ){ -% >
23
30
required= " true"
24
- < % } else { -% >
31
+ < % } else { -% >
25
32
required= " false"
26
33
< % } -% >
27
34
35
+ < % if (typeof prop .defaultValue !== ' undefined' && prop .defaultValue ){ -% >
36
+ default- value= " <%= prop.defaultValue %>"
37
+ < % } -% >
38
+
28
39
< % if (typeof prop .type !== ' undefined' && prop .type !== " Icon" && prop .type !== " DefaultVariant" ){ -% >
29
40
of - type= " <%= prop.type %>"
30
41
< % } else if (prop .type === " Icon" ){ -% >
You can’t perform that action at this time.
0 commit comments