Skip to content

arlas-wui-toolkit > "src/app/components/widget/widget.component" > WidgetComponent

Class: WidgetComponent

A Widget wraps a component from ARLAS-web-components and bind it to its contributor. The component has thus input data to plot. Note: This component is binded to ARLAS-wui configuration

Hierarchy

WidgetComponent

Implements

  • OnInit

Index

Constructors

Properties

Methods


Constructors

constructor

new WidgetComponent(arlasStartupService: ArlasStartupService, cdr: ChangeDetectorRef, componentFactoryResolver: ComponentFactoryResolver, arlasCollaborativesearchService: ArlasCollaborativesearchService, translate: TranslateService): WidgetComponent

Defined in src/app/components/widget/widget.component.ts:72

Parameters:

Name Type
arlasStartupService ArlasStartupService
cdr ChangeDetectorRef
componentFactoryResolver ComponentFactoryResolver
arlasCollaborativesearchService ArlasCollaborativesearchService
translate TranslateService

Returns: WidgetComponent


Properties

chartType

● chartType: ChartType = ChartType

Defined in src/app/components/widget/widget.component.ts:40


componentParams

● componentParams: any

Defined in src/app/components/widget/widget.component.ts:62

input: : Angular

description: Inputs of one of the ARLAS-web-components


componentType

● componentType: any

Defined in src/app/components/widget/widget.component.ts:51


contributor

● contributor: any

Defined in src/app/components/widget/widget.component.ts:43


contributorId

● contributorId: string

Defined in src/app/components/widget/widget.component.ts:57

input: : Angular

description: Identifier of the contributor that serves data to the component


contributorType

● contributorType: any

Defined in src/app/components/widget/widget.component.ts:42


graphParam

● graphParam: any

Defined in src/app/components/widget/widget.component.ts:49


highlightItems

● highlightItems: Set<string> = new Set()

Defined in src/app/components/widget/widget.component.ts:47


histogramComponent

● histogramComponent: HistogramComponent

Defined in src/app/components/widget/widget.component.ts:72


indeterminatedItems

● indeterminatedItems: Set<string> = new Set()

Defined in src/app/components/widget/widget.component.ts:46


outEvents

● outEvents: Subject<object> = new Subject<{ origin: string, event: string, data?: any }>()

Defined in src/app/components/widget/widget.component.ts:69

output: : Angular

description: Emits an output that comes from the component (ARLAS-web-components). The emitted output has information about the origin which is the contributor id of the component; event the name of the event; and eventually data which contains the emitted data from the component.


showSwimlaneDropDown

● showSwimlaneDropDown: boolean

Defined in src/app/components/widget/widget.component.ts:48


swimSelected

● swimSelected: any

Defined in src/app/components/widget/widget.component.ts:44


swimlanes

● swimlanes: any[] = []

Defined in src/app/components/widget/widget.component.ts:45


translate

● translate: TranslateService

Defined in src/app/components/widget/widget.component.ts:77


Methods

changeSwimlane

changeSwimlane(swimlaneName: any): void

Defined in src/app/components/widget/widget.component.ts:95

description: Changes swimlane from the pool of swimlanes defined in SwimlaneContributor configuration.

Parameters:

Name Type Description
swimlaneName any The name of swimlane.

Returns: void


emitEvent

emitEvent(source: string, event: string, data: any): void

Defined in src/app/components/widget/widget.component.ts:117

Emits the components output events.

Parameters:

Name Type Description
source string Contributor identifier
event string Name of the event
data any Emitted data

Returns: void


ngOnInit

ngOnInit(): void

Defined in src/app/components/widget/widget.component.ts:80

Returns: void