bcgov / bctw-ui

BC Telemetry Warehouse: UI
https://apps.nrs.gov.bc.ca/int/confluence/display/BCTW/BC+Telemetry+Warehouse
Apache License 2.0
3 stars 5 forks source link

789-animal-device-detailed-view #66

Closed GrahamS-Quartech closed 1 year ago

GrahamS-Quartech commented 1 year ago

Includes changes for 794, this PR also has latest commit at time of writing for data-table-refactor merged in.

This PR adds the DetailedCard component and SimpleMap component to meet requirements for the detailed animal view of 789. DetailedCard and SimpleMap should be pretty reusable later. In DetailedAnimalView they are set up to accept an AttachedAnimal object which will have the specified key-values pairs from the object displayed in the card view. The names of keys can optionally be overwritten to a different display name.

This also adds a customColumnsPrepend option to the DataTable, allowing the insertion of custom columns at the start of a table row rather than the end.