Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected renderUnderlined() {
let labelTemplate: TemplateResult|string = '';
if (this.label) {
labelTemplate = this.renderLabel();
}
return html`
${labelTemplate}
<div></div>
`;
}
protected renderLabelText() {
let labelTemplate: TemplateResult|string = '';
if (this.label && !this.fullWidth) {
labelTemplate = html`
<label for="text-field">
${this.label}
</label>`;
}
return html`
${labelTemplate}
<div></div>
`;
}