-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Select component dont support custom option #227
Comments
An easy implementation would be, let the |
@wilsoncook Hi. I think that immediately using Such like follow fake code: <!-- template of nzSelectComponent -->
<select>
<ng-content></ng-content>
</select> <!-- template of nzOptionComponent -->
<option>
<ng-content></ng-content>
</option> Template of user's component: <nz-select>
<nz-option *ngFor="..."> freestyle here </nz-option>
</nz-select> |
@deart1mer Yes the way using content projection is standard and easy to use like this issue illustrated above. Since the code of |
@wilsoncook Got it. It is my pleasure if I could do any help. This project is really great. |
@deart1mer Thank you sincerely for supporting! |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
I'm submitting a...
Current behavior
In the current implementation, the nz-option component does not render, so the content projection can not be added to the nz-option.
Expected behavior
Support custom option like this:
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: