Constructors
constructor
-
Parameters
-
visualName: string
-
Default value throwErrors: boolean = false
Properties
Protected throwErrors
throwErrors: boolean
Protected visualName
visualName: string
Methods
canResizeTo
- canResizeTo(viewport: IViewport): boolean
-
Parameters
Returns boolean
Protected doInit
- doInit(options: VisualInitOptions): void
-
Parameters
-
options: VisualInitOptions
Returns void
Protected doOnResizing
- doOnResizing(finalViewport: IViewport, resizeMode?: ResizeMode): void
-
Parameters
-
finalViewport: IViewport
-
Optional resizeMode: ResizeMode
Returns void
Protected doUpdate
- doUpdate(options: VisualUpdateOptions): void
-
Parameters
-
options: VisualUpdateOptions
Returns void
enumerateObjectInstances
- enumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): powerbi.VisualObjectInstanceEnumeration
-
Parameters
-
options: EnumerateVisualObjectInstancesOptions
Returns powerbi.VisualObjectInstanceEnumeration
enumerateObjectRepetition
- enumerateObjectRepetition(): VisualObjectRepetition[]
-
Returns VisualObjectRepetition[]
Protected handleCanResizeTo
- handleCanResizeTo(viewport: IViewport): boolean
-
Parameters
Returns boolean
Protected handleEnumerateObjectInstances
- handleEnumerateObjectInstances(options: EnumerateVisualObjectInstancesOptions): powerbi.VisualObjectInstanceEnumeration
-
Parameters
-
options: EnumerateVisualObjectInstancesOptions
Returns powerbi.VisualObjectInstanceEnumeration
Protected handleEnumerateObjectRepetition
- handleEnumerateObjectRepetition(): VisualObjectRepetition[]
-
Returns VisualObjectRepetition[]
Protected handleOnClearSelection
- handleOnClearSelection(): void
Protected handleOnDataChanged
- handleOnDataChanged(options: VisualDataChangedOptions): void
-
Parameters
-
options: VisualDataChangedOptions
Returns void
Protected handleOnViewModeChanged
- handleOnViewModeChanged(viewMode: ViewMode): void
init
- init(options: VisualInitOptions): void
-
Parameters
-
options: VisualInitOptions
Returns void
Optional onDataChanged
- onDataChanged(options: VisualDataChangedOptions): void
-
Parameters
-
options: VisualDataChangedOptions
Returns void
onResizing
- onResizing(finalViewport: IViewport, resizeMode?: ResizeMode): void
-
Parameters
-
finalViewport: IViewport
-
Optional resizeMode: ResizeMode
Returns void
Optional onViewModeChanged
- onViewModeChanged(viewMode: ViewMode): void
update
- update(options: VisualUpdateOptions): void
-
Parameters
-
options: VisualUpdateOptions
Returns void
A base implementation of IVisual that adds try/catch hooks around common lifecycle methods.
Optional functions in the interfaces have an empty default delegate implementation. Required methods have abstract delegates.