JSPM

palette-command

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q29138F
  • License MIT

PaletteCommand like ctrl+shift+p like SublimeText for modern browser

Package Exports

  • palette-command

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (palette-command) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

PaletteCommand-JS

PaletteCommand like ctrl+shift+p of SublimeText for modern browser

Imgur

Instalation

At the bottom of your html, before end of body.

<script type="application/javascript" src="https://raw.githubusercontent.com/tpoisseau/command-palette.js/master/dist/command-palette.min.js"></script>

And for styling in head tab

<link rel="stylesheet" type="text/css" href="https://github.com/tpoisseau/command-palette.js/blob/master/dist/command-palette.min.css">

You can also use with npm

npm install --save palette-command
import PaletteCommand from 'palette-command';

Basic Usage

const palette = new PaletteCommand();

palette.setCategory([
  {
    name: 'Advanced interactivity',
    description: "It's just for testing",
    action() {
      console.log("Advanced interactivity, It's just for testing");
    }
  }
])

// press ctrl+alt+p and palette appear with one item (Advanced interactivity)

Advanced Usage

You'll found generated JSDOC here :

API

Todo

  • Rich Jsdoc with tutorial