Skip to content

Support for binding class attribute to a string signal #22714

@mshabarov

Description

@mshabarov

A follow-up enhancement for #22670 (comment).

To add a support for element.bindAttribute("class", classListSignal):

  • it overrides the possibly existing bindings between class names and boolean signals
  • it removes the binding if classListSignal is null
  • ClassList.bind(String, Signal<Boolean>) throws an exception if it sees that a "class"-to-signal binding already exists.

See:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    🟢Ready to Go

    Status

    Next for Dev. Team

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions