Skip to content

Add multi select component to ha-form#4247

Merged
bramkragten merged 6 commits into
devfrom
ha-form-multi-select
Feb 17, 2020
Merged

Add multi select component to ha-form#4247
bramkragten merged 6 commits into
devfrom
ha-form-multi-select

Conversation

@bramkragten
Copy link
Copy Markdown
Member

@bramkragten bramkragten commented Nov 19, 2019

image

@Kane610
Copy link
Copy Markdown
Member

Kane610 commented Nov 19, 2019

Awesome 🎉

Comment thread src/components/ha-form/ha-form-multi_select.ts Outdated
@property() public label!: string;
@property() public suffix!: string;
@property() private _init = false;
@query("paper-dropdown-menu") private _input?: HTMLElement;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooo didn't know about this decorator. cool

Comment thread src/components/ha-form/ha-form-multi_select.ts Outdated
Comment thread src/components/ha-form/ha-form-multi_select.ts Outdated
Comment thread src/components/ha-form/ha-form-multi_select.ts Outdated
Comment thread src/components/ha-form/ha-form-multi_select.ts Outdated
Comment thread src/components/ha-form/ha-form.ts
@iantrich
Copy link
Copy Markdown
Member

is there a backend PR for this to go against?

@Kane610
Copy link
Copy Markdown
Member

Kane610 commented Jan 23, 2020

@iantrich no not yet

Comment thread src/components/ha-form/ha-form.ts Outdated

export interface HaFormMultiSelectSchema extends HaFormBaseSchema {
type: "multi_select";
options?: string[];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backend support has been added home-assistant/core#31798

This has become dictionary of key=>label: `{ [key: string]: string }

@bramkragten bramkragten merged commit 8f9a6bd into dev Feb 17, 2020
@delete-merged-branch delete-merged-branch Bot deleted the ha-form-multi-select branch February 17, 2020 13:13
@Kane610
Copy link
Copy Markdown
Member

Kane610 commented Feb 17, 2020

Woo-hoo 🎉

@bramkragten bramkragten mentioned this pull request Feb 17, 2020
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants