dyte-polls-toggle
A button which toggles visibility of polls.
You need to pass the meeting
object to it to see the unread polls count badge.
When clicked it emits a dyteStateUpdate
event with the data:
{
activeSidebar: boolean;
sidebar: 'polls' | 'none';
}
<dyte-polls-toggle size="sm" class="dyte-el"></dyte-polls-toggle>
<dyte-polls-toggle size="lg" class="dyte-el"></dyte-polls-toggle>
<dyte-polls-toggle variant="horizontal" class="dyte-el"></dyte-polls-toggle>
<script>
const elements = document.getElementsByClassName('dyte-el');
for (const el of elements) {
el.meeting = meeting;
}
</script>
Props
iconPack
meeting
Meeting object
Type
DyteClient
size
Size
Type
"lg" | "md" | "sm" | "xl"
states
States object
Type
States
t
variant
Variant
Default
'button'
Type
"button" | "horizontal"