https://github.com/tpoisseau/palette-command.js
CommandPalette like ctrl+shift+p of SublimeText for modern browser
https://github.com/tpoisseau/palette-command.js
browser command commandpalette front palette palettecommand sublimetext
Last synced: 29 days ago
JSON representation
CommandPalette like ctrl+shift+p of SublimeText for modern browser
- Host: GitHub
- URL: https://github.com/tpoisseau/palette-command.js
- Owner: tpoisseau
- License: mit
- Created: 2018-03-15T08:06:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-16T17:02:12.000Z (about 7 years ago)
- Last Synced: 2025-05-08T02:54:33.460Z (29 days ago)
- Topics: browser, command, commandpalette, front, palette, palettecommand, sublimetext
- Language: JavaScript
- Homepage: https://tpoisseau.github.io/palette-command.js/
- Size: 684 KB
- Stars: 5
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PaletteCommand-JS
PaletteCommand like ctrl+shift+p of SublimeText for modern browser
# Instalation
At the bottom of your html, before end of body.
```html```
And for styling in head tab
```html```
--------------
You can also use with npm
```bash
npm install --save palette-command
``````js
import PaletteCommand from 'palette-command';
```# Basic Usage
```js
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](https://tpoisseau.github.io/palette-command.js/PaletteCommand.html)
# Todo
- [ ] Rich Jsdoc with tutorial