devexpress-reporting
Version:
DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.
25 lines (24 loc) • 1.12 kB
JavaScript
/**
* DevExpress HTML/JS Reporting (common\exportOptions\htmlExportOptions.js)
* Version: 24.2.6
* Build date: Mar 18, 2025
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* License: https://www.devexpress.com/Support/EULAs/universal.xml
*/
import { htmlExportOptionsSerializationInfo } from './htmlMetaData';
import { htmlExportMode } from './metadata';
import { BaseRenderingMultiplatformModel } from '@devexpress/analytics-core/analytics-serializer-native';
export class HtmlExportOptions extends BaseRenderingMultiplatformModel {
static from(model, serializer) {
return new HtmlExportOptions(model || {}, serializer);
}
static toJson(value, serializer, refs) {
return serializer.serialize(value, htmlExportOptionsSerializationInfo, refs);
}
getInfo() {
return htmlExportOptionsSerializationInfo;
}
isPropertyDisabled(name) {
return ((name === 'pageRange') || (name === 'pageBorderWidth') || (name === 'exportWatermarks')) && ((this.htmlExportMode ? this._get('htmlExportMode') : htmlExportMode.defaultVal) === 'SingleFile');
}
}