mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
3112433a58
Summary: Dropdown conditions let you specify a predicate formula that's used to filter choices and references in their respective autocomplete dropdown menus. Test Plan: Python and browser tests (WIP). Reviewers: jarek, paulfitz Reviewed By: jarek Subscribers: dsagal, paulfitz Differential Revision: https://phab.getgrist.com/D4235
21 lines
470 B
TypeScript
21 lines
470 B
TypeScript
import { CompiledPredicateFormula } from 'app/common/PredicateFormula';
|
|
|
|
export interface DropdownCondition {
|
|
text: string;
|
|
parsed: string;
|
|
}
|
|
|
|
export type DropdownConditionCompilationResult =
|
|
| DropdownConditionCompilationSuccess
|
|
| DropdownConditionCompilationFailure;
|
|
|
|
interface DropdownConditionCompilationSuccess {
|
|
kind: 'success';
|
|
result: CompiledPredicateFormula;
|
|
}
|
|
|
|
interface DropdownConditionCompilationFailure {
|
|
kind: 'failure';
|
|
error: string;
|
|
}
|