salix/client/core/src/icon-button/icon-button.js

30 lines
700 B
JavaScript
Raw Normal View History

import {module as _module} from '../module';
// import * as resolveFactory from '../lib/resolveDefaultComponents';
2017-02-07 13:34:26 +00:00
import * as util from '../lib/util';
const _NAME = 'iconButton';
export const NAME = util.getName(_NAME);
/*
directive.$inject = [resolveFactory.NAME];
export function directive(resolve) {
return {
restrict: 'E',
template: function(_, attr) {
return resolve.getTemplate(_NAME, attr);
}
};
}
_module.directive(NAME, directive); */
_module.component(NAME, {
template: require('./icon-button.html'),
bindings: {
icon: '@',
className: '<?',
enabled: '<?',
label: '@?'
},
controllerAs: 'ib'
});