This repository was archived by the owner on Jan 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
This repository was archived by the owner on Jan 22, 2018. It is now read-only.
Width of the fields when grouping #19
Copy link
Copy link
Open
Milestone
Description
Hi there,
I tried to use the material templates, but when I try to use it grouping fields to get like 3 fields in the same row, I don't see how can I set the width for the fields, so when it renders, I get this:
and this is my configuration:
{
elementAttributes: {
"layout": "row"
},
fieldGroup: [
{
key: 'existId',
type: 'select',
templateOptions: {
label: "¿Presenta documento de identificación?",
placeholder: 'Seleccione..',
options: [
{key: 'default', value: labelsContact.options.defaultSelect},
{key: '1', value: labelsContact.options.yes},
{key: '2', value: labelsContact.options.no},
{key: '3', value: labelsContact.options.process}
],
valueProp: 'key',
labelProp: 'value',
"required": true
},
validators: selectDefaultValidator
},
{
key: 'idType',
type: 'select',
templateOptions: {
label: "",
placeholder: 'Seleccione..',
options: [],
valueProp: 'key',
labelProp: 'value',
"required": true
}
},
{
key: 'idNumber',
type: 'input',
templateOptions: {
label: labelsContact.fields.idNumber,
"required": true
}
}
]
}
How can I handle this with material templates?
Thanks.