DataView
Usage
<DataView
fields={['Account', 'Amount']}
entries={[
{ account: addr(), amount: '-7.900,33 ANT' },
{ account: addr(), amount: '-8.760,90 ANT' },
{ account: addr(), amount: '+5.321 ANT' },
]}
renderEntry={({ account, amount }) => {
return [<IdentityBadge entity={account} />, <Amount>{amount}</Amount>]
}}
/>Props
fields
TYPE
DEFAULT VALUE
field.label
field.priority
field.align
field.childStart
entries
TYPE
DEFAULT VALUE
heading
TYPE
DEFAULT VALUE
mode
TYPE
DEFAULT VALUE
page
TYPE
DEFAULT VALUE
onPageChange
TYPE
DEFAULT VALUE
entriesPerPage
TYPE
DEFAULT VALUE
selection
TYPE
DEFAULT VALUE
onSelectEntries(entries, indexes)
TYPE
DEFAULT VALUE
renderEntry(entry, index, { selected, mode })
TYPE
DEFAULT VALUE
Note: hooks in render props
renderEntryActions(entry, index, { selected, mode })
TYPE
DEFAULT VALUE
renderEntryExpansion(entry, index, { selected, mode })
TYPE
DEFAULT VALUE
renderSelectionCount(count)
TYPE
DEFAULT VALUE
tableRowHeight
TYPE
DEFAULT VALUE
status
TYPE
DEFAULT VALUE
emptyState
Configuration object
Function mode
onStatusEmptyClear
TYPE
DEFAULT VALUE
statusEmpty
TYPE
DEFAULT VALUE
statusLoading
TYPE
DEFAULT VALUE
statusEmptyFilters
TYPE
DEFAULT VALUE
statusEmptySearch
TYPE
DEFAULT VALUE
Last updated
Was this helpful?
