Add multi select component to ha-form (#4247)

* Add multi select component

* Apply suggestions from code review

Co-Authored-By: Ian Richardson <iantrich@gmail.com>

* Comments

* update

* Fix

* Refactor to dropdown menu

Co-authored-by: Ian Richardson <iantrich@gmail.com>
This commit is contained in:
Bram Kragten
2020-02-17 14:13:09 +01:00
committed by GitHub
parent 24e4b0b772
commit 8f9a6bd544
6 changed files with 193 additions and 17 deletions

View File

@@ -7,8 +7,8 @@ import {
DataEntryFlowStepForm,
DataEntryFlowStep,
DataEntryFlowStepAbort,
FieldSchema,
} from "../../data/data_entry_flow";
import { HaFormSchema } from "../../components/ha-form/ha-form";
export interface FlowConfig {
loadDevicesAndAreas: boolean;
@@ -45,7 +45,7 @@ export interface FlowConfig {
renderShowFormStepFieldLabel(
hass: HomeAssistant,
step: DataEntryFlowStepForm,
field: FieldSchema
field: HaFormSchema
): string;
renderShowFormStepFieldError(