Skip to content

Commit bb4fa3a

Browse files
committed
✨ colors
Signed-off-by: bnomei <[email protected]>
1 parent eef9224 commit bb4fa3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ The plugin will register these commands starting with `janitor:*` automatically
151151
The button you create with the `field: janitor` in your blueprint can be configured to do various things. Checkout the [example default.yml blueprint](https://github.com/bnomei/kirby3-janitor/blob/master/tests/site/blueprints/pages/default.yml) to familiarize yourself with how to use it.
152152

153153
- `autosave`, if `true` then save before pressing the button
154+
- `backgroundColor`, sets backgroundColor of button
155+
- `color`, sets text color of button
154156
- `command`, command like you would enter it in terminal, with [query language support](https://getkirby.com/docs/guide/blueprints/query-language) and page/file/user/site/data arguments
155157
- `cooldown`, time in milliseconds the message is flashed on the button (default: 2000)
156158
- `error`, set message to show on all **non-200**-status returns with query language support
@@ -166,7 +168,9 @@ The button you create with the `field: janitor` in your blueprint can be configu
166168

167169
In either the command or the callback you will be setting/returning data to the Janitor button via its api. Depending on what you return you can trigger various things to happen in the panel.
168170

171+
- `backgroundColor`, see `backgroundColor`-field option
169172
- `clipboard`, string to copy to clipboard
173+
- `color`, see `color`-field option
170174
- `download`, URL to start downloading
171175
- `error`, see `error`-field option
172176
- `help`, see `help`-field option

0 commit comments

Comments
 (0)