UNPKG

devexpress-reporting

Version:

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

27 lines (26 loc) 1.11 kB
/** * DevExpress HTML/JS Reporting (common\exportOptions\textExportOptions.js) * Version: 26.1.3 * Build date: Jun 16, 2026 * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ import { currentModelSerializer } from '@devexpress/analytics-core/analytics-serializer-native'; import { textExportOptionsSerializationInfo } from './textMetaData'; export class TextExportOptions { static from(model, serializer) { return new TextExportOptions(model || {}, serializer); } static toJson(value, serializer, refs) { if (value && !value.separator) value.separator = textExportOptionsSerializationInfo.find(info => info.propertyName === 'separator')?.defaultVal ?? 'TAB'; return serializer.serialize(value, textExportOptionsSerializationInfo, refs); } getInfo() { return textExportOptionsSerializationInfo; } constructor(model, serializer) { serializer = serializer || currentModelSerializer(); serializer.deserialize(this, model); } }