How to use the @blueprintjs/docs-theme.handleBooleanChange function in @blueprintjs/docs-theme

To help you get started, we’ve selected a few @blueprintjs/docs-theme examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github palantir / blueprint / packages / docs-app / src / examples / core-examples / popoverExample.tsx View on Github external
private getModifierChangeHandler(name: keyof PopperModifiers) {
        return handleBooleanChange(enabled => {
            this.setState({
                modifiers: {
                    ...this.state.modifiers,
                    [name]: { ...this.state.modifiers[name], enabled },
                },
            });
        });
    }
github palantir / blueprint / packages / docs-app / src / examples / core-examples / popover2Example.tsx View on Github external
private getModifierChangeHandler(name: keyof PopperJS.Modifiers) {
        return handleBooleanChange(enabled => {
            this.setState({
                modifiers: {
                    ...this.state.modifiers,
                    [name]: { ...this.state.modifiers[name], enabled },
                },
            });
        });
    }