<PopupDataList />

Constructor

# <PopupDataList attributes />

PropTypes:
Name Type Required Description Default
attributes object Yes An object of stringify-able key/value pairs

View Source Popup/PopupInsert/PopupDataList/index.js, line 11

Example

Examples

To render a list of key/value pairs like a GIS feature's attributes, the PopupDataList shows the key and its corresponding value underneath given an attributes prop.

return (
  <Popup show={true} pixel={[0, 150]} arrow={'left'} inline={true}>
    <PopupDataList attributes={{key: 'value', anotherKey: true, optionalKey: null}} />
  </Popup>
)