Defining New Properties

You can define properties for widgets by including a feature resource in a properties folder located alongside the widget's view and controller folders:

widget1
  controller
  view
  properties
    feature
widget2
  controller
  view
  properties
    feature

The feature resource must be a standard feature resource as described in the Escenic Content Engine Resource Reference (see http://docs.escenic.com/ece-resource-ref/5.7/feature.html). In this file you can both define properties and set default values for them.

A widget property must be named and defined in accordance with the following convention:

wf.props.widget-name.property-name = value

The following feature resource, for example, defines the propertiestitle, title.class and wrapper.bgurl for a widget called helloWorld:

wf.props.helloWorld.title = Hello World Widget
wf.props.helloWorld.title.class=myclass
wf.props.helloWorld.wrapper.bgurl=gfx/helloWorld/background.png