diff --git a/reports/2022.html b/reports/2022.html index 27fe7c3..66d75af 100644 --- a/reports/2022.html +++ b/reports/2022.html @@ -177,10 +177,10 @@
Summary or proposal based on current status; paragraph(s) and code.
+Currently the Slot API only supports a declarative API, meaning that slot usage can only be expressed through adding the name attribute on an element. But there are valid cases where from multiple sources of slotted content, the Web Components author may want to programmatically set the content of a slot instead. Take this example from the proposal.
++ <custom-tab show-panel="2"> + <tab-panel></tab-panel> + <tab-panel></tab-panel> + <tab-panel></tab-panel> + </custom-tab> ++
Without an imperative API, how would an author be able to set the contents of a single available slot to the selected panel index?
---
+Some of the scenarios called out in the proposal include not having to pre-compute the slot names ahead of time, as well as being able to conditionally load content into a slot.