DashboardInsightCollectionBuilder

方法

constructor

定义:

constructor(doc: Y.Doc, dsl: Y.Map<any>, dashboardBuilder: TDashboardBuilder)

参数:

参数类型说明
docY.Doc-
dslY.Map-
dashboardBuilderTDashboardBuilder-

add

定义:

add(callback: (insight: DashboardInsightBuilder<TQueryDSL, TSeedDSL>) => void): TDashboardBuilder

返回: TDashboardBuilder

参数:

参数类型说明
callback(insight: DashboardInsightBuilder<TQueryDSL, TSeedDSL>) => void-

update

定义:

update(widgetId: string, callback: (insight: DashboardInsightBuilder<TQueryDSL, TSeedDSL>) => void): TDashboardBuilder

返回: TDashboardBuilder

参数:

参数类型说明
widgetIdstring-
callback(insight: DashboardInsightBuilder<TQueryDSL, TSeedDSL>) => void-

remove

定义:

remove(widgetId: string): TDashboardBuilder

返回: TDashboardBuilder

参数:

参数类型说明
widgetIdstring-

get

定义:

get(widgetId: string): DashboardInsightBuilder<TQueryDSL, TSeedDSL> | undefined

返回: DashboardInsightBuilder<TQueryDSL, TSeedDSL> \| undefined

参数:

参数类型说明
widgetIdstring-

find

定义:

find(id: string): DashboardInsightBuilder<TQueryDSL, TSeedDSL> | undefined

返回: DashboardInsightBuilder<TQueryDSL, TSeedDSL> \| undefined

参数:

参数类型说明
idstring-

findAll

定义:

findAll(): DashboardInsightBuilder<TQueryDSL, TSeedDSL>[]

返回: DashboardInsightBuilder<TQueryDSL, TSeedDSL>[]

toJSON

定义:

toJSON(): VBIDashboardWidget[]

返回: VBIDashboardWidget[]