I'm currently using the Angular Formly library (http://angular-formly.com/) and I've hit a roadblock while trying to add a description under the label of a Select dropdown.
app.controller('CalcCtrl', function CalcCtrl(formlyVersion, formlyValidationMessages) {
var vm = this;
// function assignment
vm.onSubmit = onSubmit;
// variable assignment
vm.model = {
};
vm.fields = [
{
key: 'am_quant_lg',
type: 'input',
templateOptions: {
required: true,
label: 'Large',
description: 'Description of my input field is here',
type: 'number',
max: '100',
maxMessage: 'test ',
},
},
{
key: 'House_type',
type: 'select',
templateOptions: {
required: true,
label: 'What type of House you need?',
options: [{
name: 'Townhouse',
value: 1,
},
{
name: 'Single',
value: 2,
},]
},
},
I'm looking to include some descriptive text under the label 'What type of house you need?' – perhaps a few lines. I've successfully added descriptions to input text fields, as shown above, and I know how to add descriptions to other options. I just need assistance with the main Select element.