Nutrient Web SDK
    Preparing search index...

    Type Alias LayersSidebarOptions

    The layers sidebar options allow to specify options available for the Layers sidebar.

    Here you can define Currently, you can define a lockedLayers array in which you can provide an array of ids for the layers for which visibility should not be modifieable using the sidebar.

    Customizing the layers sidebar to align icons to the right

    NutrientViewer.load({
    initialViewState: new NutrientViewer.ViewState({
    sidebarOptions: {
    [NutrientViewer.SidebarMode.LAYERS]: {
    LockedLayers: [],
    iconsAlignment: NutrientViewer.Alignment.START
    }
    }
    })
    });
    type LayersSidebarOptions = {
        iconsAlignment: IAlignment;
        lockedLayers: number[];
    }
    Index

    Properties

    iconsAlignment: IAlignment

    Alignment relative to the parent container

    lockedLayers: number[]

    Array of ocg.ocgId present in the document