Skip to content
Snippets Groups Projects
Commit 1b312a10 authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Add collapsed columns to clipboard

parent 0dcdc161
No related branches found
No related tags found
No related merge requests found
Pipeline #48233 passed
...@@ -104,7 +104,7 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) { ...@@ -104,7 +104,7 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) {
selectable: true, selectable: true,
selectableRangeMode: "drag", selectableRangeMode: "drag",
responsiveLayout:"collapse", responsiveLayout:"collapse",
/*responsiveLayoutCollapseStartOpen:false,*/ responsiveLayoutCollapseStartOpen:false,
resizableColumns: false, resizableColumns: false,
placeholder: i18n.t("clipboard.no-data"), placeholder: i18n.t("clipboard.no-data"),
columns: [ columns: [
...@@ -210,15 +210,14 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) { ...@@ -210,15 +210,14 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) {
that.generateClipboardTable(); that.generateClipboardTable();
}); });
//Register only one beforeunload Event for the clipboard warning //Register only one beforeunload Event for the clipboard warning
if (!window.clipboardWarning) { if (!window.clipboardWarning) {
window.addEventListener('beforeunload', this._onReceiveBeforeUnload, false); window.addEventListener('beforeunload', this._onReceiveBeforeUnload, false);
window.clipboardWarning = true; window.clipboardWarning = true;
} }
}
}
disconnectedCallback() { disconnectedCallback() {
...@@ -305,6 +304,8 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) { ...@@ -305,6 +304,8 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) {
this.tabulatorTable.clearData(); this.tabulatorTable.clearData();
this.tabulatorTable.setData(data); this.tabulatorTable.setData(data);
} }
this.redrawTableWhenCollapsing(this.tabulatorTable);
} }
} }
...@@ -775,6 +776,10 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) { ...@@ -775,6 +776,10 @@ export class Clipboard extends ScopedElementsMixin(AdapterLitElement) {
font-size: 1.3em; font-size: 1.3em;
margin-top: -8px; margin-top: -8px;
} }
.tabulator .tabulator-tableHolder {
height: unset !important; //TODO find a better way to do this
}
@media only screen @media only screen
and (orientation: portrait) and (orientation: portrait)
......
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