Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to insert an icon in front of the submenu header? #22

Closed
rpimentaf opened this issue Dec 21, 2020 · 2 comments
Closed

How to insert an icon in front of the submenu header? #22

rpimentaf opened this issue Dec 21, 2020 · 2 comments
Labels
Question Question about this project Resolved: Answered The question raised by the author has been answered

Comments

@rpimentaf
Copy link

rpimentaf commented Dec 21, 2020

I've tried so hard to insert an icon in front of the submenu header, but the icon never stands in that position. I tried this code:

<BlazoredSubMenu Header="Sub Menu">
      <HeaderTemplate>
          <i class="oi oi-microphone" aria-hidden="true" /> Sub Menu
      </HeaderTemplate>
      <MenuTemplate>
        .
        .
        .      
      </MenuTemplate>
</BlazoredSubMenu>

The css is:

    .blazored-sub-menu-header span {
        display: inline;
        position: relative;
        text-align: start;
    }

The output was "Sub Menu" with the icon at the end of the line.
So, my question is: how to move the icon to the start of the line?
Thanks!!

@rpimentaf rpimentaf added Question Question about this project Triage Issue needs to be triaged labels Dec 21, 2020
@rightec
Copy link

rightec commented Jan 12, 2021

Hi. i've tried the following and it seems to work
<i class="oi oi-microphone position-sticky" aria-hidden="true" /> Sub Menu

Please let me have your feeedback
Regards

@digitalsigi
Copy link
Contributor

Look at newest version - Blazor Server Sample. I have included a possible solution

@chrissainty chrissainty added Resolved: Answered The question raised by the author has been answered and removed Triage Issue needs to be triaged labels Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Question about this project Resolved: Answered The question raised by the author has been answered
Projects
None yet
Development

No branches or pull requests

4 participants