mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 21:38:58 +08:00
16 lines
404 B
JavaScript
16 lines
404 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Component.extend({
|
|
items: null, // NamedContainerView/Menu
|
|
layoutName: 'components/menu-split',
|
|
show: 1,
|
|
|
|
visibleItems: function() {
|
|
return this.get('items').slice(0, this.get('show'));
|
|
}.property('items'),
|
|
|
|
hiddenItems: function() {
|
|
return this.get('items').slice(this.get('show'));
|
|
}.property('items'),
|
|
});
|