Merge pull request #32 from filecoin-project/@jasonleyser/table-update

Updated React Properties for Tables Component
This commit is contained in:
Jim 2020-06-30 19:05:47 -07:00 committed by GitHub
commit 8d64986ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ export default class SystemPageTables extends React.Component {
</Group>
<br />
<br />
<System.H2>Props</System.H2>
<System.H2>Accepted React Properties</System.H2>
<hr />
<br />
<Group title="Tables">
@ -107,11 +107,21 @@ export default class SystemPageTables extends React.Component {
],
rows: [
{ id: 1, a: 'key', b: 'string', c: 'null', d:'Column key value' },
{ id: 2, a: 'name', b: 'string', c: 'null', d: 'Name of the column' },
{ id: 2, a: 'tooltip', b: 'string', c: 'null', d: 'If not null a tooltip will be visible' },
{ id: 2, a: 'copyable', b: 'boolean', c: 'false', d: 'If true, a copyable icon will be visible' },
{ id: 2, a: 'type', b: 'string', c: 'null', d: 'Use FILE_LINK to add a linkable column' },
{ id: 2, a: 'width', b: 'number', c: 'null', d: 'Width of the column' },
{ id: 2, a: 'id', b: 'number', c: 'null', d:'Row ID value' },
{ id: 3, a: 'name', b: 'string', c: 'null', d: 'Name of the column' },
{ id: 4, a: 'text', b: 'string', c: 'null', d: 'Table content text' },
{ id: 5, a: 'data', b: 'string', c: 'null', d: 'Table content data' },
{ id: 6, a: 'tooltip', b: 'string', c: 'null', d: 'If not null, a tooltip will be visible' },
{ id: 7, a: 'copyable', b: 'boolean', c: 'false', d: 'If true, a copyable icon will be visible' },
{ id: 8, a: 'type', b: 'string', c: 'null', d: 'Use FILE_LINK to add a linkable column' },
{ id: 9, a: 'width', b: 'number', c: 'null', d: 'Width of the column' },
{ id: 10, a: 'action', b: 'string', c: 'null', d: 'Row action' },
{ id: 11, a: 'hideLabel', b: 'boolean', c: 'null', d: 'If true, column label will be hidden' },
{ id: 12, a: 'children', b: 'string', c: 'null', d: 'Row child value' },
{ id: 13, a: 'onNavigateTo', b: 'string', c: 'null', d: 'onNavigateTo function binding' },
{ id: 14, a: 'onAction', b: 'string', c: 'null', d: 'onAction function binding' },
{ id: 15, a: 'onChange', b: 'string', c: 'null', d: 'onChange function binding' },
{ id: 16, a: 'selectedRowId', b: 'number', c: 'null', d: 'ID value of the selected row' },
],
}}
selectedRowId={this.state.table_data}