Closed sistemanick closed 9 years ago
Instead of expressionProperties, use hideExpression.
(Sent from my mobile device, please forgive typos or brevity) On Jun 4, 2015 5:58 PM, "sistemanick" notifications@github.com wrote:
I would like an example that demonstrates: showing and hiding a whole group of fields based on model values
e.g. { key: 'showGroup', type: 'checkbox', templateOptions: { label: 'Show group' } },
{ fieldGroup: [ { key: 'field1', type: 'input', templateOptions: { required: true, label: 'Field 1' } }, { key: 'field2', type: 'input', templateOptions: { required: true, label: 'Field 2' } }
], expressionProperties: { hide: '!model.showGroup' }
}
— Reply to this email directly or view it on GitHub https://github.com/formly-js/angular-formly-website/issues/29.
Cool that works. Thanks!
I would like an example that demonstrates: showing and hiding a whole group of fields based on model values
e.g. { key: 'showGroup', type: 'checkbox', templateOptions: { label: 'Show group' } },
{ fieldGroup: [ { key: 'field1', type: 'input', templateOptions: { required: true, label: 'Field 1' } }, { key: 'field2', type: 'input', templateOptions: { required: true, label: 'Field 2' } }
], expressionProperties: { hide: '!model.showGroup' }
}