Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of contents

  1. Utilities

Quick navigation

Child pages (Children Display)
alltrue
pageFramework

Introduction:

SpinalGraph is a data schema for grouping together a set of informations and modeling the links between these informations. This data schema works on the "context" layer of the pyramid of informations.

To get more information about SpinalGraph data architecture, please read SpinalGraph 0.2 Model description.


c'est un service qui permet d'enrengistrer sous forme d'applications des boutons en fonction de mot clé.

Avec les mots clés, les interfaces retrouvent/récupère les boutons associés aux applications. 

Usage:

To use the Spinal Context Menu Service, you must :

  • Install :


Code Block
languagebash
titleInstallation
npm install --save https://github.com/spinalcom/spinal-env-viewer-context-menu-service.git


  • Import and instantiate

Code Block
titleImport and Instantiate
import {
 SpinalNode,
 SpinalContext,
 SpinalGraph
} from "../spinal-model-graph/src/index.js";

var SpinalGraph = new SpinalGraph(); // instantiate
var SpinalContext = new SpinalContext(type, name); // instantiate
var SpinalNode = new SpinalNode(type, element); // instantiate

API:

CircularMenu

Hook : circularMenu

Pour ajouter une fonction dans le circular menu il faut réaliser l'ensemble de cette procedure.


SideBar Graph Manager

Hook : sideBar

GlobalBar Graph Manager

Hook : globalBar

ViewerBar

Hook : viewerBar