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

Commit

Permalink
feat(checkbox): templateOptions.disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela committed Jan 12, 2016
1 parent aebc2da commit bdbe651
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/types/checkbox/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ import template from './checkbox.html';
export default (formlyConfigProvider) => {
formlyConfigProvider.setType({
template,
name: 'checkbox'
name: 'checkbox',
defaultOptions: {
ngModelAttrs: {
disabled: {
bound: 'ng-disabled'
}
}
},
apiCheck: (check) => ({
templateOptions: {
disabled: check.bool.optional
}
})
});
};

0 comments on commit bdbe651

Please sign in to comment.