Photo Sphere Viewer
    Preparing search index...

    Type Alias SettingsPluginConfig

    type SettingsPluginConfig = {
        persist?: boolean;
        storage?: {
            get(
                settingId: string,
            ): string | boolean | Promise<boolean> | Promise<string>;
            set(settingId: string, value: string | boolean): void;
        };
    }
    Index

    Properties

    Properties

    persist?: boolean

    should the settings be saved accross sessions

    false
    
    storage?: {
        get(
            settingId: string,
        ): string | boolean | Promise<boolean> | Promise<string>;
        set(settingId: string, value: string | boolean): void;
    }

    custom storage handler, defaults to LocalStorage

    Type declaration

    • get: function
      • return undefined or null if the option does not exist

        Parameters

        • settingId: string

        Returns string | boolean | Promise<boolean> | Promise<string>

    • set: function
    LocalStorage