mirror of
https://github.com/flarum/framework.git
synced 2024-12-15 00:23:38 +08:00
17 lines
450 B
JavaScript
17 lines
450 B
JavaScript
|
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.[]')
|
||
|
});
|