CLASS: Weather
SUPER CLASS: IFrame
Subclasses
No subclasses foundSynopsis
Weather gadget displays forecast for region defined by zip code.Full Description
Properties
Weather.border
described in Control Sets the border-width in pixels for your widget. Enter a single value like 5 to have a 5 px border around the widget. To have borders with different widths, enter a comma-separated list of pixel values like this: border-top, border-right, border-bottom, border-left For example, entering 10, 0, 5, 1 Will result in a border that is 10px wide on top, 0px wide on the right, 5px wide on the bottom and 1px wide on the left.Use within the javascript editor
this.<WidgetID>.setBorder("5,0,10,15")
Weather.borderColor
described in Control Enter a border color for your widget; rgb and hex values are accepted: rgb(0,255,0) and #00FF00 are both valid entries. You can also enter css color names, including black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white.Use within the javascript editor
this.<WidgetID>.setBorderColor("rgb(0,255,0)"); this.panel1.setBorderColor("#00FF00"); main.editor2.setBorderColor("purple");
Weather.height
described in Control The height of your widget can be specified in px or % (i.e 50px, 75%). You can have a column of widgets that combined are more than 100% width; components will be allocated space based on the ratio of sizes (a 80% height widget gets twice as much space as a 40% widget).Use within the javascript editor
this.<WidgetID>.setHeight("50%"); this.label1.setHeight("40px");
Weather.margin
described in Control Sets the margin in pixels for your widget. The margin for an object is outside of its border (the padding is inside the border). Enter a single value like 5 to have a 5 px margin around the widget. To have margins with different widths, enter a comma-separated list of pixel values like this: margin-top, margin-right, margin-bottom, margin-left For example, entering 10, 0, 5, 1 Will result in a margin that is 10px wide on top, 0px wide on the right, 5px wide on the bottom and 1px wide on the left.Use within the javascript editor
this.<WidgetID>.setMargin("5,0,10,15")
Weather.name
described in Component The name is a unique identifier for your widget. Each page element and component must be uniquely identified. WaveMaker automatically renames any non-unique element. The name makes it easy- Find the component in a bind dialog box
- Find the component in your model tree
- Reference the component in javascript
Use within the javascript editor
this.<UniqueID>.setShowing(true)
Weather.padding
described in Control Sets the padding in pixels for your widget. The padding for an object is inside of its border (the margin is outside the border). Enter a single value like 5 to have a 5 px padding around the widget. To have padding with different widths, enter a comma-separated list of pixel values like this: padding-top, padding-right, padding-bottom, padding-left For example, entering 10, 0, 5, 1 Will result in padding that is 10px wide on top, 0px wide on the right, 5px wide on the bottom and 1px wide on the left.Use within the javascript editor
this.<WidgetID>.setPadding("5,0,10,15")
Weather.scrollX
described in Control The ScrollX property enables you to turn on scrollbars for this widget such that more contents than would normally fit into its allocated width can be accessed. Technically, this sets the overflow style to scroll or to none.Use within the javascript editor
You may want to programatically access this after changing the contents of this widget at runtime.this.<WidgetID>.setScrollX(true);
Weather.scrollY
described in Control The ScrollY property enables you to turn on scrollbars for this widget such that more contents than would normally fit into its allocated height can be accessed. Technically, this sets the overflow style to scroll or to none.Use within the javascript editor
You may want to programatically access this after changing the contents of this widget at runtime.this.<WidgetID>.setScrollY(true);
Weather.showing
described in Control Showing determines whether or not a component is visible. A page element that is not showing has its css display style set to none; it is still a part of the DOM model of the page, but no longer affects the layout of other components. Uncheck the checkbox to make this widget invisible. A widget that is not showing can still be selected by navigating to that widget in the model tree and clicking it.Use within the javascript editor
this.<UniqueID>.setShowing(true)
Weather.width
described in Control The width of your widget can be specified in px or % (i.e 50px, 75%). You can have a row of widgets that combined are more than 100% width; components will be allocated space based on the ratio of sizes (a 80% width widget gets twice as much space as a 40% widget; they will fit in the designated space even though the sum is 120%).Use within the javascript editor
this.<WidgetID>.setWidth("80px");
Weather.zip
Zip code for which weather will be displayed.Use within the javascript editor
this.<WidgetID>.setZip("94105") this.gadgetWeather1.setZip("94105")
on 28/05/2009 at 11:11


