Skip to content

How do you add an icon file in front of the Title slot in the Aequos Collapsible data-group-name? #90

Answered by Laul0
tedtninety asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tedtninety,

You can't add the <aequos-iconfile /> into the collapsible attribute. Only string is allowed.
You can, by the way, use CSS as workaround to position the icon file at the same level than the header of the group collapsible component.

Handlebars

<aequos-iconfile
data-extension="{{slot item @root.slots.FileType}}"
data-theme-variant="{{JSONstringify @root.theme}}"></aequos-iconfile>
<aequos-collapsible data-group-name="{{slot item @root.slots.Title}}" data-default-collapsed="true">
    <template id="collapsible-header">
        <div>
        </div>
     </template>
    ...

CSS

aequos-iconfile {
    position: relative;
    top: 25px;
}
aequos-collapsible > div > div {
    padd…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tedtninety
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Needs: Author Feedback Awaiting response from the original poster of the issue.
2 participants