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
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 :
Todo
- Rich Jsdoc with tutorial