addTitlebarButton for widget template

567
2
09-24-2011 12:26 PM
Shu-RongKuo
New Contributor
Hi.

I am new on Flex 3.  May someone tell me what addTitlebarButton method in widget template works ?

thanks so much for the help.
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Shu-Rong,

   Widget related questions belong in the Flex Viewer Forum:

http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex

To answer your question: You will learn more about the inner workings of the Viewer by looking at the source code.
The addTitlebarButton function in a widget takes three properties


  1. A url to a icon

  2. A String that will be displayed as the tooltip when you hover over the button.

  3. A function that should be called when the button is clicked.

  4. and an optional forth which is a Boolean that indicates if the button is a toggle type or a standard button

0 Kudos
Shu-RongKuo
New Contributor
Shu-Rong,

   Widget related questions belong in the Flex Viewer Forum:

http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex

To answer your question: You will learn more about the inner workings of the Viewer by looking at the source code.
The addTitlebarButton function in a widget takes three properties


  1. A url to a icon

  2. A String that will be displayed as the tooltip when you hover over the button.

  3. A function that should be called when the button is clicked.

  4. and an optional forth which is a Boolean that indicates if the button is a toggle type or a standard button



thanks so much.
0 Kudos