mirror of
https://github.com/flarum/core.git
synced 2025-10-11 06:54:26 +02:00
Hello world!
This commit is contained in:
15
ember/app/components/menu-split.js
Normal file
15
ember/app/components/menu-split.js
Normal file
@@ -0,0 +1,15 @@
|
||||
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'),
|
||||
});
|
Reference in New Issue
Block a user