Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

cds-control does not display the custom component #6346

Locked Answered by coryrylan
wendellestradairely asked this question in Q&A
Discussion options

You must be logged in to vote

This is because the cds-control attribute is needed to identify the custom component replacing the input. Checkout the "Generic content" section here.

<cds-control>
  <label>Select an Option</label>
  <ng-select cds-control>
    <ng-option [value]="'male'">Male</ng-option>
    <ng-option [value]="'female'">Female</ng-option>
  </ng-select>
</cds-control>

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mathisscott
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
resolution: no fix needed Issues that do not require a change to Clarity type: support Support, implementation or questions component: forms @cds/core
3 participants
Converted from issue

This discussion was converted from issue #6321 on September 16, 2021 13:19.