mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
page toolbar
This commit is contained in:
parent
836b7f3fb4
commit
13a879a89b
11 changed files with 213 additions and 224 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue