Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 8c805d7

Browse files
author
Kamil Kisiela
committed
feat(select): onClose and onOpen
Equivalent to md-on-close and md-on-open
1 parent 0dda057 commit 8c805d7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/types/select/select.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ export default (formlyConfigProvider) => {
77
wrapper: ['label', 'messages', 'inputContainer'],
88
defaultOptions: {
99
ngModelAttrs: {
10-
multiple: {bound: 'multiple'}
10+
multiple: {bound: 'multiple'},
11+
onClose: {bound: 'md-on-close'},
12+
onOpen: {bound: 'md-on-open'}
1113
}
1214
},
1315
apiCheck: (check) => ({
1416
templateOptions: {
1517
options: check.arrayOf(check.object),
1618
multiple: check.bool.optional,
1719
labelProp: check.string.optional,
18-
valueProp: check.string.optional
20+
valueProp: check.string.optional,
21+
onClose: check.func.optional,
22+
onOpen: check.func.optional
1923
}
2024
})
2125
});
22-
}
26+
}

0 commit comments

Comments
 (0)