Files
threshold-ui/ui/desktop/app/components/reveal/index.hbs
T
Carlos Alcaide 62b097170c feat: 🎸 Changes from previous PR suggestions
- Refactor RevealComponent class to inherit from RoseDropdown, no logic
need it. Now there is no need to keep any logic or state. - Refactor
component, to toggle Summary text and set chevron icon with CSS. -
Removed old commented code. Please feel free to suggest a change to
bring it back if can be useful.
2021-06-18 12:29:39 -07:00

14 lines
385 B
Handlebars

<details ...attributes class='reveal' {{on-click-outside this.close}}>
<summary class='reveal-summary'>
<span class='reveal-summary-text-close'>
{{@textWhenClose}}
</span>
<span class='reveal-summary-text-open'>
{{@textWhenOpen}}
</span>
</summary>
<content class='reveal-content' {{on-click-inside this.close}}>
{{yield}}
</content>
</details>