1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

page toolbar

This commit is contained in:
Harvey Kandola 2017-12-06 19:56:51 +00:00
parent 836b7f3fb4
commit 13a879a89b
11 changed files with 213 additions and 224 deletions

View file

@ -10,13 +10,23 @@
// https://documize.com
import { set } from '@ember/object';
import Component from '@ember/component';
import { computed } from '@ember/object';
export default Component.extend({
nameField: 'category',
singleSelect: false,
items: [],
maxHeight: 0,
styleCss: computed('maxHeight', function () {
let height = this.get('maxHeight');
if (height > 0) {
return `overflow-y: scroll; max-height: ${height}px;`;
} else {
return '';
}
}),
actions: {
onToggle(item) {