@dxos/app-graph - v0.16.0
    Preparing search index...

    Function hasDisposition

    • Tests whether a node's disposition property (a single string or an array, letting one node opt into multiple surfaces at once) includes any of key. Every surface that routes nodes/actions by disposition (toolbar, nav-tree list-item, sigil menu, …) should filter through this rather than comparing properties.disposition directly, so a node can multi-target surfaces.

      Parameters

      • node: Pick<
            Readonly<
                {
                    cacheable?: string[];
                    data: any;
                    id: string;
                    properties: Readonly<Record<string, any>>;
                    type: string;
                },
            >,
            "properties",
        >
      • key: string | string[]

      Returns boolean