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