Select to view content in your preferred language

Enhanced Layer List Widget 3.4

2245
5
Jump to solution
08-27-2013 12:15 PM
EricVenden
Frequent Contributor
Hi Robert,

I would like to make the text (layer list items) in your Enhanced Layer List widget larger.  Would that tweak be in a file in the toc/tocClasses folder?  or would that be in the eLayerListWidget.mxml?

Thanks for your time.
Eric V
Gurnee, IL
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Eric,

   In the TocItemRenderer.as in the commitProperties function your would use setStyle to set the "fontSize"

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Eric,

   In the TocItemRenderer.as in the commitProperties function your would use setStyle to set the "fontSize"
0 Kudos
EricVenden
Frequent Contributor
Thanks for your response Robert,
I found that changing the font/size in the main config file also produced the results I was looking for.

Eric
Eric,

   In the TocItemRenderer.as in the commitProperties function your would use setStyle to set the "fontSize"
0 Kudos
MichaelVolz
Esteemed Contributor
Eric:

What is the main config file you mention?

Does this mean you just need to modify a config file and not make any changes to source code that would require re-compiling the widget (This would be much easier and less risky)?
0 Kudos
EricVenden
Frequent Contributor
Michael,

We've added a couple lines in the style section of the main config (config.xml):

    <style>
        <colors>0xE6E3DA,0x4A5160,0x919BB0,0x90896B,0xE8DFB1</colors>
        <alpha>0.8</alpha>
  <font name="Gill Sans MT" size="15" />
  <titlefont name="Gill Sans MT" size="23" />
  <subtitlefont name="Gill Sans MT" size="17" />
    </style>

I adjusted the size from 13 to 15 - HOWEVER, this does adjust the size for ALL widgets, etc (not the title and subtitle as the code would indicate)

Look at the documentation for a full list of tags: 
http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/General_UI_properties/01m300000...

Hope this helps
Eric


Eric:

What is the main config file you mention?

Does this mean you just need to modify a config file and not make any changes to source code that would require re-compiling the widget (This would be much easier and less risky)?
0 Kudos
MichaelVolz
Esteemed Contributor
Eric:

Thanks for explaining the consequences of changing the config file instead of modifying the source code like Robert Scheitlin suggested.
0 Kudos