interface PatronBlockingRulesEditorProps {
    csrfToken?: string;
    disabled?: boolean;
    error?: FetchErrorData;
    onServerValidationStateChange?: (isBlocking: boolean) => void;
    onValidationStateChange?: (isBlocking: boolean) => void;
    serviceId?: number;
    value?: PatronBlockingRule[];
}

Properties

csrfToken?: string
disabled?: boolean
error?: FetchErrorData
onServerValidationStateChange?: (isBlocking: boolean) => void

Called whenever the server-side validation error state changes. True while any rule has a non-null server-reported validation error.

onValidationStateChange?: (isBlocking: boolean) => void

Called whenever the client-side "save should be blocked" state changes. True while any rule is incomplete (missing name or expression) or while any two rules share the same name.

serviceId?: number