# visualizer/3.7.0/classes/Visualizer/Gutenberg/src/Components/Sidebar/InstanceSettings.js

Visualizer – Tables &amp; Charts Manager with Built-in AI Generator, version 3.7.0. 59 lines.

- Page: https://pluginprobe.com/plugins/visualizer/3.7.0/code/classes/Visualizer/Gutenberg/src/Components/Sidebar/InstanceSettings.js
- Raw: https://pluginprobe.com/plugins/visualizer/3.7.0/raw/classes/Visualizer/Gutenberg/src/Components/Sidebar/InstanceSettings.js
- Modified: 2020-07-08T14:32:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/visualizer/3.7.0/code/classes/Visualizer/Gutenberg/src/Components/Sidebar/InstanceSettings.js#L10-L20`.

```javascript
/**
 * WordPress dependencies
 */
const { __ } = wp.i18n;

const { Component } = wp.element;

const {
	PanelBody,
	Notice,
	TextControl
} = wp.components;

class InstanceSettings extends Component {
	constructor() {
		super( ...arguments );
	}

	render() {

		const settings = this.props.chart['visualizer-settings'];

		return (
			<PanelBody
				title={ __( 'Instance Settings' ) }
				initialOpen={ true }
				className="visualizer-instance-panel"
			>

                <Notice status="info" isDismissible={ false } >
                    <p>
                        { __( 'These settings are valid only for this instance of the chart.' ) }
                    </p>
                    <p>
                        { __( 'This means that if you insert this chart again elsewhere, these values will not persist.' ) }
                    </p>
                </Notice>

                <TextControl
                    label={ __( 'Should this instance lazy Load?' ) }
                    help={ __( '-1: do not lazy load. Any number greater than -1 will lazy load the chart once the viewport is that many pixels away from the chart' ) }
                    value={ this.props.attributes.lazy ? Number( this.props.attributes.lazy ) : -1 }
                    type="number"
                    min="-1"
                    max="1000"
                    step="1"
                    onChange={ e => {
                        this.props.attributes.lazy = e;
                        this.props.edit( settings );
                    } }
                />

			</PanelBody>
		);
	}
}

export default InstanceSettings;

```
