Generic: Difference between revisions
Jump to navigation
Jump to search
Created page with " == Description == The Generic control is an HTML wrapper which you can use to create your own control or element. Using it will require some knowledge of HTML. Once you hav..." |
|||
Line 18: | Line 18: | ||
| class || Class is a special attribute, which defines the CSS which applies to the element. Class names are separated by spaces. | | class || Class is a special attribute, which defines the CSS which applies to the element. Class names are separated by spaces. | ||
|- | |- | ||
| content || The text to use in between the HTML tags. | | content || The text to use in between the HTML tags. Can be text or HTML. | ||
|- | |- | ||
| HTMLTag || The HTML tag of the control. It is formatted <HTMLTag>content</HTMLTag>. | | HTMLTag || The HTML tag of the control. It is formatted <HTMLTag>content</HTMLTag>. |
Revision as of 08:43, 22 December 2014
Description
The Generic control is an HTML wrapper which you can use to create your own control or element. Using it will require some knowledge of HTML. Once you have set the options, the result will be a fully function AppStudio control.
All the usual events are supported.
To add a Generic control to your app, choose the Generic icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need.
Properties
Standard properties are supported, plus:
attributes | A list of HTML attributes. |
class | Class is a special attribute, which defines the CSS which applies to the element. Class names are separated by spaces. |
content | The text to use in between the HTML tags. Can be text or HTML. |
HTMLTag | The HTML tag of the control. It is formatted <HTMLTag>content</HTMLTag>. |
style | A list of style properties, each in the form styleName:value; |
Change the color of a label
Generic1.style.color = "red"
Events
Standard events are supported. However, events are not usually associated with the control.