Skip to content

Commit df78b11

Browse files
author
pinnacle-comp
committed
1 parent 428e8b6 commit df78b11

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

main/classes/pinnacle.window.WindowHandle.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,30 @@ Toggles the given tag on this window.
293293

294294

295295

296+
### <Badge type="method" text="method" /> set_tags
297+
298+
<div class="language-lua"><pre><code>function pinnacle.window.WindowHandle:set_tags(tags: <a href="/lua-reference/main/classes/pinnacle.tag.TagHandle">pinnacle.tag.TagHandle</a>[])</code></pre></div>
299+
300+
Sets the exact provided tags on this window.
301+
302+
Passing in an empty table will not change the window's tags.
303+
304+
#### Example
305+
```lua
306+
-- Sets the focused window's tags to "1" and "3", removing all others
307+
Window.get_focused():set_tags({ Tag.get("1"), Tag.get("2") })
308+
```
309+
310+
311+
#### Parameters
312+
313+
`tags`: <code><a href="/lua-reference/main/classes/pinnacle.tag.TagHandle">pinnacle.tag.TagHandle</a>[]</code> - The tags to set
314+
315+
316+
317+
318+
319+
296320
### <Badge type="method" text="method" /> raise
297321

298322
<div class="language-lua"><pre><code>function pinnacle.window.WindowHandle:raise()</code></pre></div>

0 commit comments

Comments
 (0)