Skip to content

Commit 6c482f0

Browse files
author
edencoder
committed
add field subs
1 parent cf1dc28 commit 6c482f0

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

bundles/form/fields/address.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,23 @@ export default class AddressField extends Field {
2525
// return data
2626
return {
2727
tabs : ['Display', 'Validate'],
28+
subs : [
29+
{
30+
key : 'formatted',
31+
type : 'text',
32+
title : 'Formatted',
33+
},
34+
{
35+
key : 'geo.lat',
36+
type : 'number',
37+
title : 'Latitude',
38+
},
39+
{
40+
key : 'geo.lng',
41+
type : 'number',
42+
title : 'Longitude',
43+
},
44+
],
2845
};
2946
}
3047

bundles/form/fields/date.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class DateField extends Field {
2525
{
2626
key : 'duration',
2727
type : 'number',
28-
title : 'duration',
28+
title : 'Duration',
2929
},
3030
{
3131
key : 'start',

bundles/form/fields/phone.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,33 @@ export default class PhoneField extends Field {
2626
// return data
2727
return {
2828
tabs : ['Display', 'Validate'],
29+
subs : [
30+
{
31+
key : 'number',
32+
type : 'number',
33+
title : 'Number',
34+
},
35+
{
36+
key : 'code',
37+
type : 'number',
38+
title : 'Code',
39+
},
40+
{
41+
key : 'valid',
42+
type : 'boolean',
43+
title : 'Valid',
44+
},
45+
{
46+
key : 'carrier',
47+
type : 'text',
48+
title : 'Carrier',
49+
},
50+
{
51+
key : 'location',
52+
type : 'text',
53+
title : 'Location',
54+
},
55+
],
2956
};
3057
}
3158

0 commit comments

Comments
 (0)