Skip to content

Latest commit

 

History

History
87 lines (58 loc) · 2.63 KB

File metadata and controls

87 lines (58 loc) · 2.63 KB

CoMPAS Open Plugin

File explorer and opener menu plugin for CoMPAS Open SCD (next)

Class: CompasOpenMenuPlugin

Superclass:

Name Module Package
LitElement lit-element

Fields

Name Privacy Type Default Description Inherited From
allowLocalFile boolean true If true, the user can select a local file to open.
selectedType string The selected SCL type..
sclTypes Element[] The list of SCL types.
items Element[] The list of SCL documents.
labels string[] The list of available labels.
selectedLabels string[] The list of selected labels.
locale string The locale to use for translations.

Methods

Name Privacy Description Parameters Return Inherited From
run Run method to start the plugin. Promise

Exports

Kind Name Declaration Module Package
js default CompasOpenElement src/compas-open-plugin.ts

Linting and formatting

To scan the project for linting and formatting errors, run

npm run lint

To automatically fix linting and formatting errors, run

npm run format

Testing with Web Test Runner

To execute a single test run:

npm run test

To run the tests in interactive watch mode run:

npm run test:watch

Demoing with Storybook

To run a local instance of Storybook for your plugin, run

npm run storybook

To build a production version of Storybook, run

npm run storybook:build

Local Demo with web-dev-server

npm start

To run a local development server that serves the basic demo located in demo/index.html

© 2023 Alliander N.V.