1
0
mirror of https://github.com/flarum/core.git synced 2025-10-11 06:54:26 +02:00
Files
php-flarum/ember/app/components/menu-split.js
Toby Zerner 74db323f83 Hello world!
2014-12-20 16:56:46 +10:30

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'),
});