Skip to content

Commit a318330

Browse files
committed
🚀 v5
Signed-off-by: Bruno Meilick <[email protected]>
1 parent 267489a commit a318330

File tree

17 files changed

+12754
-377
lines changed

17 files changed

+12754
-377
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,21 @@ return [
8282
8383
```
8484

85+
### View Buttons
86+
87+
You can also use Janitor to create up to 10 custom [view buttons](https://getkirby.com/releases/5/view-buttons#custom-vue-component).
88+
89+
**site/blueprints/page/default.yml**
90+
```yml
91+
buttons:
92+
janitor: # or janitor_1, janitor_2, ... janitor_9
93+
command: whistle
94+
label: Whistle
95+
icon: audio
96+
preview: true
97+
settings: true
98+
```
99+
85100
### Callback
86101

87102
Instead of using a command you can also create a callback in a custom plugin options or any config file.
@@ -173,6 +188,7 @@ In either the command or the callback you will be setting/returning data to the
173188
- `icon`, see `icon`-field option
174189
- `label`, see `label`-field option
175190
- `message`, see `message`-field option
191+
- `notification`, array of method and message, like `['success', 'Deployed!']`
176192
- `open`, URL to open, use with `intab`-field option to open in a new tab
177193
- `reload`, if `true` will reload panel view once api call is received
178194
- `success`, see `success`-field option

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"require-dev": {
5353
"getkirby/cli": "^1.5.0",
54-
"getkirby/cms": "^5.0.0-alpha.4",
54+
"getkirby/cms": "dev-v5/develop",
5555
"larastan/larastan": "^v3.0.0",
5656
"laravel/pint": "^1.13",
5757
"pestphp/pest": "^v3.5.1",

0 commit comments

Comments
 (0)