21 lines
576 B
JavaScript
21 lines
576 B
JavaScript
import {module as _module} from '../module';
|
|
import * as util from '../lib/util';
|
|
import * as constant from '../lib/constants';
|
|
import template from './floatbutton.mdl.html';
|
|
|
|
const _NAME = 'floatButton';
|
|
const DEFAULT_CLASS = 'mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored';
|
|
|
|
export const NAME = util.getFactoryName(_NAME + constant.MATERIAL_DESIGN_FRAMEWORK);
|
|
|
|
export function factory() {
|
|
return {
|
|
template: template,
|
|
default: {
|
|
className: DEFAULT_CLASS
|
|
}
|
|
};
|
|
}
|
|
|
|
_module.factory(NAME, factory);
|