Methods
# inner ClusterTable(props) → {React.ReactElement}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
props |
object
|
||
field |
object
|
field object to render | |
field.value |
object
|
value of the field | |
field.value.headers |
object
|
headers of the table | |
field.value.rows |
object
|
rows of the table | |
field.label |
object
|
<optional> |
label of the field |
the cluster table
React.ReactElement
# inner ConfigView(props) → {React.ReactElement}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
props |
object
|
||
sections |
array
|
array of sections to render | |
dynamicComponents |
object
|
<optional> |
object of dynamic components to render |
isLoading |
boolean
|
<optional> |
boolean to indicate if the view is loading |
options |
object
|
<optional> |
options object |
options.fieldValueComponent |
React.ReactElement
|
<optional> |
component to use for field values. Use to completely control the rendering of field values |
options.linkComponent |
React.ReactElement
|
<optional> |
component to use for links. If fieldValueComponent this property will be ignored |
- returns rendered view
React.ReactElement
# inner FieldValue(props) → {React.ReactElement}
Render the value of a field
Parameters:
Name | Type | Description |
---|---|---|
props |
object
|
|
field |
object
|
field object to render |
- returns rendered field
React.ReactElement
# inner LinkValue(props) → {React.ReactElement}
Render the value of a link
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
props |
object
|
||
field |
object
|
field object to render | |
link |
object
|
string
|
link object to render | |
link.id |
string
|
id of the link | |
link.label |
string
|
label of the link | |
link.name |
string
|
<optional> |
name of the link (fallback if label is not present) |
index |
number
|
index of the link |
- returns rendered link
React.ReactElement
# inner ViewColumns(props) → {React.ReactElement}
Parameters:
Name | Type | Description |
---|---|---|
props |
object
|
|
areas |
object
|
field object to render |
- returns rendered columnss
React.ReactElement
# inner ViewField(props) → {React.ReactElement}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
props |
object
|
||
field |
object
|
field object to render | |
field.type |
string
|
type of field to render | |
field.label |
string
|
<optional> |
text to render |
- returns rendered field
React.ReactElement
# inner ViewRows(props) → {React.ReactElement}
Parameters:
Name | Type | Description |
---|---|---|
props |
object
|
|
areas |
object
|
field object to render |
- returns rendered rows
React.ReactElement
# inner ViewSection(props) → {React.ReactElement}
renders a view section
Parameters:
Name | Type | Description |
---|---|---|
props |
object
|
|
section |
object
|
field object to render |
index |
number
|
index of the field |
- returns rendered section
React.ReactElement