gristlabs_grist-core/app
Paul Fitzpatrick ac5452c89f (core) add grist.onRecord and grist.onRecords event handlers
Summary:
This simplifies writing custom widgets that access selected
data.  To access the record at which the cursor is set, and
get any future changes to it as the cursor moves or data
changes, it suffices now to do:

```
grist.ready();
grist.onRecord(record => /* render */);
```

Similarly to access the set of selected records, and get any
changes, it suffices now to do:

```
grist.ready();
grist.onRecords(records => /* render */);
```

The `records` argument will be a list of objects, each of which
is a single record.  This is distinct from the column-based
representation favored in Grist up ontil now.  That remains
how methods like `fetchTable` or `fetchSelectedTable` represent
their results.  In the future, methods named like `fetchRecords`
or `fetchSelectedRecords` could be added that return lists.

Test Plan: extended tests

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2583
2020-08-13 14:34:23 -04:00
..
client (core) Add some media queries to improve printing 2020-08-10 10:36:34 -04:00
common (core) add grist.onRecord and grist.onRecords event handlers 2020-08-13 14:34:23 -04:00
gen-server (core) For getting access info, include the first-level doc and workspace users. 2020-08-05 00:26:04 -04:00
plugin (core) add grist.onRecord and grist.onRecords event handlers 2020-08-13 14:34:23 -04:00
server (core) Fix two issues combining to report misleading error when saving to an empty name 2020-08-03 19:53:29 -04:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00