Skip to content

Use class syntax for the main component#80

Merged
btecu merged 3 commits intomasterfrom
burebista
Apr 29, 2025
Merged

Use class syntax for the main component#80
btecu merged 3 commits intomasterfrom
burebista

Conversation

@btecu
Copy link
Copy Markdown
Owner

@btecu btecu commented Apr 29, 2025

Migrates main component to use class syntax.

Part of #74 + fixes.

shouldFilter=this.shouldFilter
onSelect=(action "select")
}}
<this.dropdown
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This won't work with the current use of passing in strings, so it's a breaking change. Just want to call that out. This will be worthy of a version bump therefore.

Long-term, what do you think about passing in a block?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Agree, although the documentation was already specifying component and not string.

Yes, updating to @glimmer/component & using blocks here would be really nice and it would cleanup a bit the intertwined components.

@btecu btecu merged commit e95747e into master Apr 29, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants