Skip to content

Commit

Permalink
add "remove" command to the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Infi-power committed Nov 13, 2023
1 parent 5dc0874 commit 9f89209
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/touchscreen.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ digiline_send("touchscreen", {
})
```

**`remove`** - Removes an element.
**`remove`** - Removes an element and resizes the formspec array to fill the gaps.

```lua
digiline_send("touchscreen", {
Expand All @@ -72,6 +72,15 @@ digiline_send("touchscreen", {
})
```

**`delete`** - Removes an element but it **doesn't** resizes the fromspec array.

```lua
digiline_send("touchscreen", {
command = "delete",
index = 1,
})
```

**`clear`** - Removes all elements, but keeps settings.

```lua
Expand Down

0 comments on commit 9f89209

Please sign in to comment.