{
type: "select",
key: "name",
templateOptions: {
label: "Name",
theme: "custom",
multiple: true,
labelProp: "firstName",
valueProp: "id",
options: [
{firstName: "Sarah", id: 1},
{firstName: "Jessica", id: 2},
{firstName: "Parker", id: 3}
],
onOpen: () => {
console.log('select is opened');
},
onClose: () => {
console.log('select is closed');
}
}
}
Array with available options
Name of property with option's label
Name of property with option's value
Multiple choice
Bound to md-on-open.
Expression to be evaluated when the select is opened.
If expression returns a promise, it will display a loading indicator while it is being resolved.
Bound to md-on-close.
Expression to be evaluated when the select is closed.