@furo/ui5
Version:
SAP UI5 Web Components data bindings for furo-web
31 lines (28 loc) • 796 B
JavaScript
import { html } from 'lit';
import { CellString } from './cell-string.js';
/**
* `cell-furo-stringproperty`
* The cell-furo-stringproperty component displays a FieldNode of type `furo.Stringproperty` in read only mode.
*
* Every cell-xxx component should implement the following API:
* - function: bindData(fieldNode){...}
*
* @summary cell display renderer for `furo.Stringproperty`
* @element cell-furo-stringproperty
*
*/
export class CellFuroStringproperty extends CellString {
/**
* render function
* @private
* @returns {TemplateResult|TemplateResult}
*/
render() {
// language=HTML
return html` ${this._field ? html` ${this._field.data._value} ` : html``} `;
}
}
window.customElements.define(
'cell-furo-stringproperty',
CellFuroStringproperty
);