Properties

The list of properties is used to capture the input during design time and use the same information during runtime for rendering the widget or to do specific tasks based on the property value.

Each property can be accessed in a standard way the jQuery works. With the widget id you can access the property as $(#widgetId).prop('propertyname').

List of design time properties are encapsulated using property element as shown in above example. Property element has following attributes.

  • name - Specifies the Property name
  • type - Specified the type of property. The valid property types are string, boolean, integer, and float.
  • default - Specified the default value of the property.
  • comment - Displays the help text on hovering the mouse cursor on the property.