UNPKG

@digital-blueprint/lunchlottery-app

Version:

[GitHub Repository](https://github.com/digital-blueprint/lunchlottery-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/lunchlottery-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/lunchlottery-app/)

36 lines (31 loc) 884 B
import {css, html} from 'lit'; import {ScopedElementsMixin} from '@dbp-toolkit/common'; import {DbpBaseView} from '../base-view.js'; export class DbpNumberView extends ScopedElementsMixin(DbpBaseView) { constructor() { super(); this.label = 'A number field'; } static get styles() { return [ ...super.styles, // language=css css` :host([layout-type='inline']) fieldset { display: flex; gap: var(--dbp-enum-label-gap, 1em); margin: 0; } :host([layout-type='inline']) label { margin-bottom: 0; white-space: nowrap; } `, ]; } renderValue() { return html` <div>${this.value}</div> `; } }