import { Observable } from 'rxjs'; import { ConditionOptions } from '../../../enums/export'; import { OptionsTable } from '../../export'; /** * checkstatus option */ export interface CheckStatusOption extends OptionsTable { /** * get color check function */ functionCondition: ({ data }: { data: any; }) => boolean; /** * attribute to get value */ attribute: string; /** * confirm condition */ condition?: { /** * confirm title */ title?: string | ((data: any) => string); /** * position of confirm pop */ position?: ConditionOptions; }; /** * custom http subscriber */ httpSubscribe?: ({ data, item }: { data: any; item: any; }) => Observable; /** * custom map to http subscriber */ mapHttpSubscribe?: ({ response, component }: { response: any; component: any; }) => any; }