Add Dropdown Default Feature

This commit is contained in:
copecone committed 2026-03-17 21:27:47 +09:00
1 parent 88f72e767f
commit f71dc03f67
4 files changed
+25 -6

No files matched your search

+4 -3
View File
@@ -3,20 +3,21 @@
<div class="container">
<h1>AEF Component Test</h1>
<section>
<section id="switch-test">
<h2>Switch Component</h2>
<switch [(isActive)]="isToggled" (toggle)="handleToggle($event)"></switch>
<p>Switch is: {{ isToggled() ? 'ON' : 'OFF' }}</p>
</section>
<section>
<section id="dropdown-test">
<h2>Dropdown Component</h2>
<div style="display: flex; flex-direction: column; gap: 40px; align-items: flex-start;">
<div>
<h3>Object Options</h3>
<h3>Object Options (with defaultIndex="1")</h3>
<dropdown
[options]="dropdownOptions"
[(value)]="selectedDropdownValue"
[defaultIndex]="1"
(selectionChange)="handleDropdownChange($event)"
icon="language">
</dropdown>