Hello I am trying to build a table for mobile devices that looks like this attached.
I did look into the TableView samples an the business app, but I need rows of images and data.
Hello I am trying to build a table for mobile devices that looks like this attached.
I did look into the TableView samples an the business app, but I need rows of images and data.
You should be able to do this with a widget.newTableView. There is a function that gets called on the onRowRender event (each time a row needs to be drawn on the screen). Most people name this function onRowRender as a convenience/standard.
When you insert rows, you can pass in an index to a data table that has your information in, or pass in actual values. When the onRowRender function is called, you can determine the row index or the passed in data and then create the display objects needed for the row, be it an image, a display.newText()
You can put whatever you want in a row as long as it’s a display.* API. You cannot add native.* objects to a tableView row.
Rob
You should be able to do this with a widget.newTableView. There is a function that gets called on the onRowRender event (each time a row needs to be drawn on the screen). Most people name this function onRowRender as a convenience/standard.
When you insert rows, you can pass in an index to a data table that has your information in, or pass in actual values. When the onRowRender function is called, you can determine the row index or the passed in data and then create the display objects needed for the row, be it an image, a display.newText()
You can put whatever you want in a row as long as it’s a display.* API. You cannot add native.* objects to a tableView row.
Rob