offline-grid-demo
About This Space
A demonstration of some of the client-side grid functions that could be used in an offline mobile environment.
Last updated on December 8, 2023
Public Permissions: View Open/Fork Run Comment
Client-Side Grid Functions
This space illustrates the use of some of the client-side grid functions, which consist of:
grid.push(record, refresh)
– Add a record to a gridgrid.clear(refresh)
– Clear out a gridgrid.removeRow(row, refresh)
– Remove row number row from a gridgrid.insertRow(row, ...[records], refresh)
– Insert one or more records into a grid at row row.grid.addRecords(records, refresh)
– Add records passed in an array to a gridgrid.replaceRecords(records, refresh)
– First clear grid, then calladdRecords
grid.splice(start, deleteCount, ...[records], refresh)
– Delete or insert one or more records from/to a grid, similar to Array.splicegrid.unshiftRow(record, refresh)
– Insert record to the beginning of the grid
The refresh parameter is a Boolean that indicates if the grid should automatically refresh itself after the contents are changed. If multiple grid changes are being made, performance will be better if you delay the refresh until the last change is made (set this parameter to true
for the last grid manipulation, or manually call grid.refresh()
).
More Spaces By Jeff Berman (@jeff)
- 1
- 2
This is just the hello world template for me to test various NodeRun things with. Nothing to see here, move along... :-)
4378
0
0
Simple space to demonstrate what appears to be a rendering bug in mobile Safari. Run this space on an iPhone running 12.2 or higher, rotate the phone to landscape, then rotate back to portrait. If the issue occurs, there will be an unusable white space at the bottom of the screen.
4925
0
0
Stateless demo app, where the mobile client or the browser would control the flow of the application
3738
0
0
Stateless demo app, where the mobile client or the browser would control the flow of the application
3789
0
0
Stateless demo app, where the mobile client or the browser would control the flow of the application
4344
0
0
- 1
- 2
Be the first to comment:
Comments