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

2823

0

This is just the hello world template for me to test various NodeRun things with. Nothing to see here, move along... :-)

3268

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.

3794

0

0

map demo

3062

0

0

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

2750

0

0

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

2674

0

0

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

3312

0

0

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

2505

0

0

Static HTML Hello World App

2806

0

0

Simple page to test voice dictation not working in iOS 13

3070

0

0

Test an issue with programmatically checking checkboxes

3047

0