Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Child pages (Children Display)
alltrue
sorttitle
reversetrue

 

Widgets

<wall/>

A simple wall

 

Info
iconfalse
  1. <wall label="my.wall.label" defaultSort="timeStamp" commentHandler="MyUnit:commentFunction" buttonLabel="my.custom.label.for.comment.button">
  2.     <collectionSource function="MyUnit:collection" />
  3.     <itemTitle    value="MyUnit:getTitle"/>
  4.     <itemText    value="MyUnit:getText"/>
  5.     <itemOwner    value="MyUnit:getOwner"/>
  6.     <itemTime    value="MyUnit:getTime"/>
  7.     <itemIcon    value="MyUnit:getIcon"/>
  8. </wall>

 

<table/>

A tabular widget listing the contents of a collection as rows, and a defined set of columns. Table is further documented in /wiki/spaces/HP/pages/5048864 documentation.

Dynamic Labels, Headings, and Titles Anchordynamiclabelsdynamiclabels

The value from a unit variable can be used for a widget's label or title, or a table column heading. The variable lookup is controlled via the lang file in the same way as you would insert variables into e.g. an alert message's content, i.e. with the variable name inside curly brackets. Please note the unit containing the variable also needs to be specified in the lang file line.

 

Info
titleview
  1. <info label="info_label.country_division">
  2.     <binding variable="state" />
  3. </info>
Info
titleen.lang

info_label.country_division={CountryUtil:countryDivision}

Info
titlepresenter

Unit CountryUtil;

string countryDivision;

void init() {

countryDivision = "province";

}