dev-ui.qwc-aiservices.js Maven / Gradle / Ivy
The newest version!
import { LitElement, html, css} from 'lit';
import '@vaadin/grid';
import { columnBodyRenderer } from '@vaadin/grid/lit.js';
import '@vaadin/grid/vaadin-grid-sort-column.js';
import {aiservices} from 'build-time-data';
export class QwcAiservices extends LitElement {
static styles = css`
:host {
height: 100%;
display: flex;
}
vaadin-grid {
margin-left: 15px;
margin-right: 15px;
height: 100%;
}
`;
static properties = {
"_aiservices": {state: true},
}
constructor() {
super();
this._aiservices = aiservices;
}
render() {
if (this._aiservices) {
return this._renderAiServiceTable();
} else {
return html`No AI services found`;
}
}
_renderAiServiceTable() {
return html`
`;
}
_nameRenderer(aiservice) {
return html`${aiservice.clazz}`;
}
_toolsRenderer(aiservice) {
if (aiservice.tools && aiservice.tools.length > 0) {
return html`
${aiservice.tools.map(tool =>
html`${tool}
`
)} `;
}
}
}
customElements.define('qwc-aiservices', QwcAiservices);
© 2015 - 2024 Weber Informatics LLC | Privacy Policy