Select to view content in your preferred language

How to re-design the header bar -- v 2.1

1308
5
12-08-2010 08:51 AM
GeorgiannaStrode
Deactivated User
I'm trying to re-design the header bar, with no luck.

I want do not want to show logo, title, or subtitle but instead move the widget container to the left.

Any ideas on where to look?

Thanks in advance.
Tags (2)
0 Kudos
5 Replies
BjornSvensson
Esri Regular Contributor
I want do not want to show logo, title, or subtitle but instead move the widget container to the left.


Remove logo, title, subtitle from your config.xml.

To align the widget icons to the left, go into HeaderControllerWidget and change the "center" below to "left" (at least that's what I think you are trying to do):
<mx:HBox id="widgetBox"
          width="100%"
          horizontalAlign="center">
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Georgianna,

Sure that is pretty easy just see the required changes below:
<mx:Image id="logoIcon"
                      horizontalAlign="left"
                      maxHeight="{headerContent.height}"
                      maxWidth="80"
                      verticalAlign="middle"
       visible="false" includeInLayout="false"/>
            <s:VGroup id="titleGroup"
                      height="{headerContent.height}"
                      gap="0" visible="false" includeInLayout="false">
                <s:Label id="bannerTitle" styleName="BannerTitle"/>
                <s:Label id="bannerSubtitle" styleName="BannerSubtitle"/>
            </s:VGroup>

            <mx:HBox id="widgetBox"
                     width="100%"
                     horizontalAlign="left">
0 Kudos
WallaceBezerra
Emerging Contributor
What do you mean about "re-designing" the header bar? Do you want to build a completely different one? Want to customize the existent widget?
0 Kudos
GeorgiannaStrode
Deactivated User
Thanks everyone!  I love it when simple code works the first time. 

The widget buttons are left-justified!
0 Kudos
GeorgiannaStrode
Deactivated User
What do you mean about "re-designing" the header bar? Do you want to build a completely different one? Want to customize the existent widget?



Wallace, I want to keep the same one just left-justify the buttons.
0 Kudos