I’ve been learning how to use the tile view today and found it very unintuitive and not easy to debug.
In order to use the tile view :
- Create a widget which will be used to render your tile. It should implement the ‘UserObjectListEntry’ interface
- Create a variable on your new widget which will hold your custom data for the tile
- Implement the ‘GetListItemObject’ method by returning your new variable
- Implement the ‘OnListItemObjectSet’ method by setting your new variable to what is passed in
- Add your data to the TileView when you set it up (probably in PreConstruct with an array of data you need to view)
The tile view will create only as many child widgets it requires to render all the currently viewable tiles. If you don’t implement the hooks that the tile view calls to render your widgets (by setting up your widget with the data passed when it changes) you’ll just see your widget with it’s default data. In this way you can have thousands of data items, but the tile view will only create a few actual widgets so it will still be performant.
As far as I can tell the TileView only renders your proper customized data at runtime, the designer view will just have your custom widget with its default data.