UNPKG

devexpress-reporting

Version:

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

25 lines (24 loc) 954 B
/** * DevExpress HTML/JS Reporting (common\exportOptions\printPreviewOptions.js) * Version: 24.2.7 * Build date: Apr 29, 2025 * Copyright (c) 2012 - 2025 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 { printPreviewOptionsSerializationInfo } from './printPreviewMetaData'; export class PrintPreviewOptions { static from(model, serializer) { return new PrintPreviewOptions(model || {}, serializer); } static toJson(value, serializer, refs) { return serializer.serialize(value, printPreviewOptionsSerializationInfo, refs); } getInfo() { return printPreviewOptionsSerializationInfo; } constructor(model, serializer) { serializer = serializer || currentModelSerializer(); serializer.deserialize(this, model); } }