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 grid
  • grid.clear(refresh) – Clear out a grid
  • grid.removeRow(row, refresh) – Remove row number row from a grid
  • grid.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 grid
  • grid.replaceRecords(records, refresh) – First clear grid, then call addRecords
  • grid.splice(start, deleteCount, ...[records], refresh) – Delete or insert one or more records from/to a grid, similar to Array.splice
  • grid.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()).

Be the first to comment:      

Comments

Write Preview Markdown: bold italic code link
Post

More Spaces By Jeff Berman (@jeff)

Filters:

Popular Recent

A Hello World app with both dynamic output and input fields

3877

0

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

map demo

4084

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

Stateless demo app, where the mobile client or the browser would control the flow of the application

3593

0

0

Static HTML Hello World App

3889

0

0

Simple page to test voice dictation not working in iOS 13

4163

0

0

Test an issue with programmatically checking checkboxes

4055

0