-
-
-
+
+
- bottom-left
+ bottom-start
-
-
+
+
bottom
-
-
+
+
- bottom-right
+ bottom-end
@@ -62,22 +62,22 @@ Placements
"
>
-
-
+
+
- left-top
+ left-start
-
-
+
+
left
-
-
+
+
- left-bottom
+ left-end
@@ -93,22 +93,22 @@ Placements
"
>
-
-
+
+
- right-top
+ right-start
-
-
+
+
right
-
-
+
+
- right-bottom
+ right-end
@@ -119,15 +119,15 @@ Placements
-
+
Action
@@ -150,10 +150,10 @@
Placements
radios.forEach(radio => {
radio.addEventListener('change', () => {
const placement = radio.value;
- const dropdown = document.getElementById('dropdown_placements_example');
- const placementText = document.getElementById('dropdown_placements_example_text');
+ const dropdown = document.getElementById('dropdown-placements-example');
+ const placementText = document.getElementById('dropdown-placements-example-text');
- dropdown.classList.replace(dropdown.classList[1], `Dropdown--${placement}`);
+ dropdown.dataset.spiritPlacement = placement;
placementText.textContent = placement.split(/(?=[A-Z])/).join('-').toLowerCase();
});
});
@@ -171,15 +171,15 @@
Various items
-
+
Plain text
@@ -216,15 +216,15 @@
Usage with disabled auto close
-