This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
Make generic control of core actually generic #5586
Answered
by
coryrylan
dorthrithil
asked this question in
Ideas
-
Currently the only element that is working in <cds-control>
<label>label text</label>
<my-custom-control></my-custom-control>
<cds-control-message>message text</cds-control-message>
</cds-control>
|
Beta Was this translation helpful? Give feedback.
Answered by
coryrylan
Feb 8, 2021
Replies: 1 comment
-
This was recently fixed, and not yet published to the docs. You can add any generic content by adding the cds-control attirbute to the element replacing the input. <cds-control>
<label>label</label>
<p cds-control cds-text="body" cds-layout="m-t:sm">
Use the <code cds-text="code">cds-control</code> attribute to place generic content into a control layout.
</p>
<cds-control-message>control message</cds-control-message>
</cds-control> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
coryrylan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was recently fixed, and not yet published to the docs. You can add any generic content by adding the cds-control attirbute to the element replacing the input.