@nextcloud/sharing
    Preparing search index...

    Interface ISidebarSection

    interface ISidebarSection {
        element: string;
        id: string;
        order: number;
        enabled(node: INode): boolean;
    }
    Index

    Properties

    Methods

    Properties

    element: string

    The registered identifier of the custom web component to be used.

    The custom elements identifier must be prefixed with your apps namespace like oca_myapp-sharing_section. Also the component must at least have a node property which must accept the current active node as INode from @nextcloud/files.

    id: string

    Unique identifier for the section

    order: number

    Order of the sidebar sections. A higher value means the section will be displayed first.

    Methods

    • Check if the section is enabled for the current active node

      Parameters

      • node: INode

        The node to check

      Returns boolean