Skip to content

Commit

Permalink
Merge pull request #303 from melloware/patch-2
Browse files Browse the repository at this point in the history
DevUI: Add sorting to table columns
  • Loading branch information
phillip-kruger authored Jul 13, 2024
2 parents 2d4e4dd + d1ba9dd commit fe0bd7e
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import '@vaadin/grid';
import '@vaadin/grid/vaadin-grid-sort-column.js';
import { LitElement, html, css} from 'lit';
import { columnBodyRenderer } from '@vaadin/grid/lit.js';
import { JsonRpc } from 'jsonrpc';
Expand Down Expand Up @@ -40,23 +42,23 @@ export class QwcLoggingManagerLoggers extends LitElement {

render() {
return html`<vaadin-grid .items="${this._loggers}" class="logger-table" theme="no-border">
<vaadin-grid-column auto-width
<vaadin-grid-sort-column auto-width
header="Logger"
${columnBodyRenderer(this._loggerRenderer, [])}
resizable>
</vaadin-grid-column>
</vaadin-grid-sort-column>
<vaadin-grid-column auto-width
<vaadin-grid-sort-column auto-width
header="Effective Level"
${columnBodyRenderer(this._effectiveLevelRenderer, [])}
resizable>
</vaadin-grid-column>
</vaadin-grid-sort-column>
<vaadin-grid-column auto-width
<vaadin-grid-sort-column auto-width
header="Configured Level"
${columnBodyRenderer(this._configuredLevelRenderer, [])}
resizable>
</vaadin-grid-column>
</vaadin-grid-sort-column>
</vaadin-grid>`
}

Expand Down

0 comments on commit fe0bd7e

Please sign in to comment.