Skip to content

add tap/hold actions to entity rows#3837

Closed
iantrich wants to merge 2 commits into
home-assistant:devfrom
iantrich:entity-row-actions
Closed

add tap/hold actions to entity rows#3837
iantrich wants to merge 2 commits into
home-assistant:devfrom
iantrich:entity-row-actions

Conversation

@iantrich
Copy link
Copy Markdown
Member

@iantrich iantrich commented Oct 1, 2019

Continuation of #2786

With the introduction of the ability to cast our lovelace views, this is an even more viable change as currently dialogs are not possible and clicking on entity rows therefore does nothing. This change will allow users to set custom tap/hold actions for their entity rows

Docs: home-assistant/home-assistant.io#8705

Closes home-assistant/ui-schema#238

Copy link
Copy Markdown
Member

@bramkragten bramkragten left a comment

Choose a reason for hiding this comment

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

I'm ok with this, @balloob you had some doubts last time around I believe...

Comment thread src/panels/lovelace/entity-rows/hui-climate-entity-row.ts Outdated
@iantrich iantrich changed the title add tap/hold actions to entity rows WIP: add tap/hold actions to entity rows Oct 4, 2019
@iantrich iantrich changed the title WIP: add tap/hold actions to entity rows add tap/hold actions to entity rows Oct 4, 2019
!DOMAINS_HIDE_MORE_INFO.includes(computeDomain(entityConf.entity))
) {
element.classList.add("state-card-dialog");
element.addEventListener("click", () => this._handleClick(entityConf));
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.

We now changed the behaviour of all entity rows? You can no longer click on the row to get the more-info?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

moved actions to the badge

@iantrich iantrich closed this Oct 16, 2019
@iantrich iantrich deleted the entity-row-actions branch October 30, 2019 03:19
@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.

Entity type rows should support tap_action

5 participants