informatics-isi-edu / ermrestjs

ERMrest client library in JavaScript
Apache License 2.0
4 stars 3 forks source link

Foreign key ux mode annotation support #986

Closed jrchudy closed 1 year ago

jrchudy commented 1 year ago

This PR adds the inputDisplayMode property to foreign key pseudo columns. This is added for 3 annotations currently as the property selector_ux_mode. By default, this property is set to popup to use the more robust recordset modal popup that includes sorting, filtering, and updating page size.

For defining inputDisplayMode, it will look for selector_ux_mode in the following order:

  1. defined on visible-columns annotation
  2. defined on foreign-key annotation
  3. defined on table-display annotation when the table is the leaf table in a single outbound foreign key
  4. default value of popup

These changes go alongside the changes in chaise to add a another input field for the dropdown case.