Skip to content
Snippets Groups Projects
Commit 4a863fbb authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Refactor maxSelectedItems name (#14)

parent a83e2949
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) { ...@@ -30,7 +30,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) {
this.tabulatorTable = null; this.tabulatorTable = null;
this.allowedMimeTypes = '*/*'; this.allowedMimeTypes = '*/*';
this.directoriesOnly = null; this.directoriesOnly = null;
this.selectNum = true; this.maxSelectedItems = true;
this._onReceiveWindowMessage = this.onReceiveWindowMessage.bind(this); this._onReceiveWindowMessage = this.onReceiveWindowMessage.bind(this);
} }
...@@ -55,7 +55,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) { ...@@ -55,7 +55,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) {
directoryPath: { type: String, attribute: false }, directoryPath: { type: String, attribute: false },
allowedMimeTypes: { type: String, attribute: 'allowed-mime-types' }, allowedMimeTypes: { type: String, attribute: 'allowed-mime-types' },
directoriesOnly: { type: Boolean, attribute: 'directories-only' }, directoriesOnly: { type: Boolean, attribute: 'directories-only' },
selectNum: { type: Number, attribute: 'select-num' }, maxSelectedItems: { type: Number, attribute: 'max-selected-items' },
}; };
} }
...@@ -87,7 +87,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) { ...@@ -87,7 +87,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) {
// TODO: translation of column headers // TODO: translation of column headers
this.tabulatorTable = new Tabulator(this._("#directory-content-table"), { this.tabulatorTable = new Tabulator(this._("#directory-content-table"), {
layout: "fitDataStretch", layout: "fitDataStretch",
selectable: this.selectNum, selectable: this.maxSelectedItems,
selectableRangeMode: "drag", selectableRangeMode: "drag",
columns: [ columns: [
{title: "", field: "type", align:"center", formatter: (cell, formatterParams, onRendered) => { {title: "", field: "type", align:"center", formatter: (cell, formatterParams, onRendered) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment