mirror of
https://github.com/flarum/core.git
synced 2025-08-01 14:10:37 +02:00
Hello world!
This commit is contained in:
18
ember/app/components/button-item.js
Normal file
18
ember/app/components/button-item.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import Ember from 'ember';
|
||||
|
||||
export default Ember.View.extend({
|
||||
title: '',
|
||||
icon: '',
|
||||
class: '',
|
||||
action: null,
|
||||
|
||||
tagName: 'a',
|
||||
classNames: ['btn'],
|
||||
classNameBindings: ['class', 'disabled'],
|
||||
|
||||
layout: Ember.Handlebars.compile('{{#if view.icon}}{{fa-icon view.icon class="fa-fw"}} {{/if}}<span>{{view.title}}</span>'),
|
||||
|
||||
click: function() {
|
||||
this.action();
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user