Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CI committed Feb 2, 2021
1 parent 5b2c0d2 commit 3a24eba
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/api/icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,22 @@ icon:unbindToggleItem(guiObjectOrLayerCollector)
```
Unbinds the given GuiObject or LayerCollector from the toggle.

----
#### bindEvent
{chainable}
```lua
icon:bindEvent(iconEventName, eventFunction)
```
Connects to an [icon event](https://1foreverhd.github.io/TopbarPlus/api/icon/#events) based upon the given ``iconEventName`` and call ``eventFunction`` with arguments ``(self, ...)`` when the event is triggered.

----
#### unbindEvent
{chainable}
```lua
icon:unbindEvent(iconEventName)
```
Unbinds the connection of the associated ``iconEventName``.

----
#### bindToggleKey
{chainable}
Expand Down

0 comments on commit 3a24eba

Please sign in to comment.