Datawheel / oec-website

The website powering the Observatory of Economic Complexity
atlas.media.mit.edu
8 stars 1 forks source link

reworks selectmulti section component #77

Closed frabarz closed 4 years ago

frabarz commented 4 years ago

This PR adds a reworked SelectMulti Section/HS items component. This component is able to take in an array of data from tesseract, and nest it to show selectable items for each parent category and item itself. As it is at the moment, it can't handle an HS6 level, but can easily be expanded to support it.

frabarz commented 4 years ago

Alright, I just added points 3 and 4. Point 2 is already implemented; the X appears when the main component has a onItemRemove property set, and point 1 was discussed on Slack.

frabarz commented 4 years ago

by the way, anyone who merges this don't forget to delete the TestArea before merging <3