Skip to content

Support binding Signal<Boolean> with attributes #23887

@TatuLund

Description

@TatuLund

Describe your motivation

Presence of the attribute is quite typical usage of attribute based API in web components. This is interpreted as boolean. I.e. when attribute is present, it does something, e.g. it is implemented with attribute CSS selector or something like that.

Describe the solution you'd like

I would like to have something like

component.getElement().bindAttributeBoolean(signal);

When signal gives true, attribute is added and when signal gives false, the attribute is removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Maybe

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions