Select to view content in your preferred language

align div in header -content

600
3
Jump to solution
06-28-2022 05:16 PM
LefterisKoumis
Regular Contributor II

Trying to place the arrow icon to the far right side of the header -content div.

LefterisKoumis_1-1656461699765.png

 

 

<calcite-panel id="feature_info" with-Scale="l">
          <div id="header-content" slot="header-content" style="font-size: large; font-weight: bold; float: right">
            Feature Info
            <div style="float:right">
              <calcite-icon icon="arrow-bold-right" id="next"></calcite-icon>
            </div>
          </div>

          
        </calcite-panel>

 

 

 

 

0 Kudos
1 Solution

Accepted Solutions
BenElan
Esri Contributor

I edited the codepen a bit, is this what you're looking for? 

https://codepen.io/benesri/pen/gOeOeLp

 

View solution in original post

0 Kudos
3 Replies
BenElan
Esri Contributor

Hi @LefterisKoumis, you can use Panel's header-actions-end slot. Here is a sample: 

https://codepen.io/benesri/pen/gOeOeLp?editors=1000

 

0 Kudos
LefterisKoumis
Regular Contributor II

By using the slot, can we control the location of the arrow like adding a vertical alignment and padding so it is not at the extreme end of the panel, like this:

LefterisKoumis_0-1656518717736.png

 

0 Kudos
BenElan
Esri Contributor

I edited the codepen a bit, is this what you're looking for? 

https://codepen.io/benesri/pen/gOeOeLp

 

0 Kudos