- 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.
14 lines
385 B
Handlebars
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> |