An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# PaletteCommand-JS
PaletteCommand like ctrl+shift+p of SublimeText for modern browser

![Imgur](https://i.imgur.com/6ZJ4TwZ.png)

# 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