@eclipse-scout/core
Version:
Eclipse Scout runtime
32 lines (28 loc) • 801 B
text/typescript
/*
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
import {LookupRow, StaticLookupCall} from '../../index';
export class ActiveDummyLookupCall extends StaticLookupCall<number> {
constructor() {
super();
this.setDelay(250);
}
protected override _data(): any[] {
return [
[1, 'Foo', true],
[2, 'Bar', false],
[3, 'Baz', null]
];
}
protected override _dataToLookupRow(data: any[]): LookupRow<number> {
let lookupRow = super._dataToLookupRow(data);
lookupRow.active = data[2];
return lookupRow;
}
}