dropdown render
This commit is contained in:
committed by
Jacob Overgaard
parent
90c3e5c0f1
commit
338b98a02f
@@ -6,6 +6,7 @@ export * from './body-layout/body-layout.element.js';
|
||||
export * from './button-with-dropdown/button-with-dropdown.element.js'; // TODO: delete this and change usage to umb-dropdown
|
||||
export * from './code-block/index.js';
|
||||
export * from './input-date/index.js';
|
||||
export * from './input-dropdown/index.js';
|
||||
export * from './dropdown/index.js';
|
||||
export * from './empty-state/index.js';
|
||||
export * from './entity-actions-bundle/index.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { css, html, nothing, customElement, property, query, state } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { css, html, customElement, property, query } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { FormControlMixin, UUISelectEvent } from '@umbraco-cms/backoffice/external/uui';
|
||||
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
|
||||
@@ -28,11 +28,10 @@ export class UmbInputDropdownListElement extends FormControlMixin(UmbLitElement)
|
||||
}
|
||||
|
||||
render() {
|
||||
if (!this.options) return nothing;
|
||||
return html`<uui-select
|
||||
label=${this.localize.term('formProviderFieldTypes_dropdownName')}
|
||||
.placeholder=${this.placeholder ?? ''}
|
||||
.options=${this.options}
|
||||
.options=${this.options ?? []}
|
||||
@change=${this.#onChange}></uui-select>`;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/
|
||||
import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
|
||||
import { UmbPropertyEditorExtensionElement } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import '../../../components/input-dropdown/input-dropdown-list.element.js';
|
||||
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user