LogPanels (deprecated)
Log Panels
Props
Name
Type
Default Value
Required
Description
name
string
--
Yes
The name of the visualization
type
Support 4 values: waf ssli pr gifw
--
Yes
The type of the visualization
labels
{label: string; value: string | number}[]
--
Yes
The labels shown in the header
data
{ chart: IObject; dataSource: IObject[]; totalCount: number; filters: IObject[]; label: string }
{}
No
Render data
Data Structure
Usage Example (type 'gifw')
Usage of Log PAnel with type 'gifw'.
Replace dataSource with respective types to generate the panels you want! (dataSource formats listed below).
type is gifw
type is gifwChart
Use highcharts config format.
dataSource and totalCount
totalCount is number of all list data.
This is an example of dataSource.
type is pr
type is prChart
Use highcharts config format.
dataSource and totalCount
totalCount is number of all list data.
This is an example of dataSource.
type is ssli
type is ssliChart
Use highcharts config format.
dataSource and totalCount
totalCount is number of all list data.
This is an example of dataSource.
type is waf
type is wafChart
Use highcharts config format.
dataSource and totalCount
totalCount is number of all list data.
This is an example of dataSource.
This is an example of the Sub table when expand waf table row.
filters have some format for different type.
The filters support two formats, one is checkbox filter, one is scoll range filter. This is an example for the two formats.
Actions
VIZ.LOG.LOAD.EXPANDROW
Name
Type
Description
type
string
The action type
logType
string
The type of LogPanel
record
IObject
The row object
callback
(data: IObject, totalCount?: number): void
The update the viz with new data
VIZ.LOG.LOAD.EXPANDROW.SUB
Name
Type
Description
type
string
The action type
options
string
The type of LogPanel
callback
(data: IObject, totalCount?: number): void
The update the viz with new data
VIZ.LOG.LOADMORE
Name
Type
Description
type
string
The action type
options
{page: number; pageSize: number; type: string}
The options for loading more
callback
(dataSouce: IObject[], totalCount: number): void
The update the viz with new data
VIZ.LOG.LOADMORE.SUB
Name
Type
Description
type
string
The action type
options
{page: number; pageSize: number; type: string, record: IObject}
The options for loading more
callback
(dataSouce: IObject[], totalCount: number): void
The update the viz with new data
VIZ.LOG.CHANGE.FILTERS
Name
Type
Description
type
string
The action type
filters
IObject[]
The selected filters
VIZ.LOG.CHANGE.LABEL
Name
Type
Description
type
string
The action type
label
string
The label in the header
VIZ.LOG.CHANGE.LABEL
Name
Type
Description
type
string
The action type
value
string
The search value which input in the header
VIZ.LOG.CLICK.DOWNLOAD
Call the action when click the download icon in the header
Name
Type
Description
type
string
The action type
VIZ.LOG.CLICK.HELP
Call the action when click the help icon in the header
Name
Type
Description
type
string
The action type
Last updated
Was this helpful?