File

context-dashboard/dashboard-detail.service.ts

Index

Properties
Methods

Constructor

constructor(fb: FormBuilder, translateService: TranslateService)
Parameters :
Name Type Optional
fb FormBuilder No
translateService TranslateService No

Methods

initAppearanceSettingsForm
initAppearanceSettingsForm(dashboard: ContextDashboard)

Creates form group for appearance settings of dashboard.

Parameters :
Name Type Optional Description
dashboard ContextDashboard No

Context dashboard object

Returns : FormGroup

Dashboard appearance settings form

initForm
initForm(dashboard: ContextDashboard, isReport: boolean, deviceTypeValue: string)

Creates dashboard details form divided into two groups- general settings and appearance settings.

Parameters :
Name Type Optional Description
dashboard ContextDashboard No

Context dashboard object

isReport boolean No

True if its report dashboard

deviceTypeValue string No

Value used for typed dashboard

Returns : FormGroup

Dashboard details form

initGeneralSettingsForm
initGeneralSettingsForm(dashboard: ContextDashboard, isReport: boolean, deviceTypeValue: string)

Creates form group for general settings of dashboard.

Parameters :
Name Type Optional Description
dashboard ContextDashboard No

Context dashboard object

isReport boolean No

True if its report dashboard

deviceTypeValue string No

Value used for typed dashboard

Returns : FormGroup

Dashboard general settings form

Properties

Readonly DEFAULT_DASHBOARD_ICON
Type : string
Default value : 'th'
Readonly DEFAULT_DASHBOARD_MARGIN
Type : number
Default value : 12
Readonly DEFAULT_DASHBOARD_PRIORITY
Type : number
Default value : 5000
styling
Type : object
Default value : { themeClass: 'dashboard-theme-light', headerClass: 'panel-title-regular' }

results matching ""

    No results matching ""