Skip to content

Commit 3396381

Browse files
committed
docs(select): add section description to Rich Content Options
1 parent ca1f07f commit 3396381

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docs/api/select.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,13 @@ import StartEndSlots from '@site/static/usage/v9/select/start-end-slots/index.md
203203

204204
## Rich Content Options
205205

206-
TODO
206+
:::important
207+
Rich content in select options is disabled by default. Set [`innerHTMLTemplatesEnabled`](/docs/developing/config#ionicconfig) to `true` in your [global Ionic config](/docs/developing/config#global-config). Markup inside options is treated as plain text when it is disabled. Refer to [Security](/docs/techniques/security.md) for sanitization guidance when enabling custom HTML.
208+
:::
209+
210+
In addition to single text labels, [Select Options](./select-option.md) can include HTML rich content in the select interface. Elements added inside of an option without a named slot will go into the default label. The `start` and `end` slots will place elements on either side of the default slot. The `description` attribute can be used for additional supporting text displayed under the label.
211+
212+
This is separate from [Start and End Slots](#start-and-end-slots) on `ion-select`, which decorate the closed field. The rich content options display in the interface after opening the select.
207213

208214
import RichContentOptions from '@site/static/usage/v9/select/rich-content-options/index.md';
209215

0 commit comments

Comments
 (0)