devexpress-reporting
Version:
DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.
26 lines (25 loc) • 1.04 kB
JavaScript
/**
* DevExpress HTML/JS Reporting (designer\widgets\localizationSelectBox.js)
* Version: 25.2.3
* Build date: Dec 15, 2025
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* License: https://www.devexpress.com/Support/EULAs/universal.xml
*/
import * as ko from 'knockout';
import { DataSourceSelectBox } from './dataSourceSelectBox';
import { availableCultures } from '../../common/defaultCulture';
export class LocalizationSelectBox extends DataSourceSelectBox {
constructor(modelPropertyInfo, level, parentDisabled, textToSearch) {
super(modelPropertyInfo, level, parentDisabled, textToSearch);
}
getValues() {
if (!this.dataSource) {
const dataSource = Object.entries(availableCultures()).map(([key, value]) => ({
value: key,
displayValue: value
}));
this._disposables.push(this.dataSource = ko.computed(() => DataSourceSelectBox.createDataSource(dataSource)));
}
return this.dataSource;
}
}