Widget label
In Flex, the browser function of ArcGIS is defined as a widget. A widget is a code block that can be added to a modular viewer. Widgets can be added and/or deleted in the viewer application as needed.
<Widget> --This label is defined in the viewer application part. It can be referenced in the viewer application configuration file, as an independent component, or in the component container-This determines the UI behavior of the widget in the browser. For details about flex, refer to the theme components in ArcGIS browser.
It has the following attributes:
- Tag-Widget name. This value becomes the title of the dialog widget. If it is included in the component template, it is also the tip of the widget in the headercontroller part tray.
- Left-Number of shards on the left edge of the application window.
- Right-Number of workers at the right edge of the application window.
- Top-Number of workers at the edge of the application window.
- Bottom-Number of shards at the bottom edge of the application window.
- Icon-Icons used for widgets on the widget tray. If the widget is not in the widget container, its icon is not displayed in the widget tray. This icon is also displayed in the upper left corner of the widget dialog box window (when the widget is"Open") When the widget is "minimized ". I _widget.png:
- Preload-Make sure that the control is initially opened if it is an "active" or no-Viewer application. It can be enabled or minimized. By default, Widgets are installed, that is, they are not pre-installed.
- Config-Location Path of the widget configuration file.
- URL-The URL of the SWF file of the widget.
The first four features: Left, right, top, and bottom when it comes to the position of the dialog box window of the component involved, it first opens the window of the viewer application. Basically, the location of the widget dialog box is referenced to the edge of the application. Therefore, if the application window is large, the widget dialog box will always be visible relative to the application window. This method is used to reference the application layout.
Show two different examples of the georss part dialog based on the property deposit on the right and bottom:
The following code example of the config. xml file shows that the positions of the two graphical components are different:
<! -- Widget in screen capture on the left --> <br/> <widget right = "350" Bottom = "75" Config = "widgets/georss/georsswidget. XML "url =" widgets/georss/georsswidget.swf "/> <br/>... <br/> <! -- Widget in screen capture on the right --> <br/> <widget right = "75" Bottom = "350" Config = "widgets/georss/georsswidget. XML "url =" widgets/georss/georsswidget.swf "/>