ccdb-web/app/components/action-button.js
2017-10-01 16:49:43 -07:00

32 lines
559 B
JavaScript

import Ember from 'ember';
const { Component } = Ember;
export default Component.extend({
tagName: 'a',
classNames: ['btn'],
classNameBindings: [
'isDefault:btn-default',
'isPrimary:btn-primary',
'isSuccess:btn-success',
'isInfo:btn-info',
'isWarning:btn-warning',
'isDanger:btn-danger',
'isLink:btn-link',
],
// ARGS
isDefault: false,
isPrimary: false,
isSuccess: false,
isInfo: false,
isWarning: false,
isDanger: false,
isLink: false,
label: 'LABEL',
click() {
this.get('onClick')();
}
});