UNPKG

devexpress-reporting

Version:

DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.

23 lines (22 loc) 1.2 kB
/** * DevExpress HTML/JS Reporting (chart\components\models\_legend.js) * Version: 25.1.3 * Build date: Jun 26, 2025 * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ import { SerializableModel } from '@devexpress/analytics-core/analytics-elements'; import { editorTemplates } from '@devexpress/analytics-core/analytics-widgets'; import { legendSerializationsInfo } from '../../internal/meta/_chart'; export class LegendViewModel extends SerializableModel { static from(model, serializer) { return new LegendViewModel(model || {}, serializer); } static toJson(value, serializer, refs) { return serializer.serialize(value, legendSerializationsInfo, refs); } constructor(model, serializer) { super(model, serializer, legendSerializationsInfo); } } export const legend = { propertyName: 'legend', modelName: 'Legend', displayName: 'Legend', localizationId: 'DevExpress.XtraCharts.Legend', info: legendSerializationsInfo, from: LegendViewModel.from, toJsonObject: LegendViewModel.toJson, defaultVal: {}, editor: editorTemplates.getEditor('objecteditor') };