1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Big component restructure/overhaul

This commit is contained in:
Toby Zerner
2015-01-03 21:51:47 +10:30
parent 0ed141d49e
commit f62e8e2541
44 changed files with 262 additions and 352 deletions

View File

@@ -0,0 +1,16 @@
import Ember from 'ember';
import DropdownButton from './dropdown-button';
export default DropdownButton.extend({
layoutName: 'components/ui/controls/dropdown-split',
classNames: ['dropdown', 'dropdown-split', 'btn-group'],
mainButtonClass: function() {
return 'btn '+this.get('buttonClass');
}.property('buttonClass'),
firstItem: function() {
return this.get('items').objectAt(0);
}.property('items.[]')
});