-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(cdk-experimental/combobox): introduce new signals-based combobox #31872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
wagnermaciel
commented
Sep 15, 2025
- Create the Combobox UI Pattern class
- Create the CdkCombobox, CdkComboboxInput, CdkComboboxPopupContent, and CdkComboboxPopup directives
- Create 3 component examples.
Deployed dev-app for ef511a3 to: https://ng-dev-previews-comp--pr-angular-components-31872-dev-jwmz3vug.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
904893f
to
d9ade63
Compare
|
||
export type ComboboxListboxInputs<V> = ListboxInputs<V> & { | ||
/** The combobox controlling the listbox. */ | ||
combobox: SignalLike<ComboboxPattern<OptionPattern<V>, V> | undefined>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the pattern is separated from ListboxPattern I think it's fine to make the combobox
not nullable to simplify the constructor logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried making this change but it actually ends up complicating the constructor logic of the CdkListbox more than it simplifies the constructor of the popup pattern