Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
1ForeverHD committed Feb 2, 2021
1 parent 5b2c0d2 commit a5b15b1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [2.1.0] - January 19 2021
### Added
- ``icon:bindEvent(iconEventName, eventFunction)``
- ``icon:unbindEvent(iconEventName)``

--------

## [2.0.0] - January 19 2021
### Added
- Menus (dropdowns but horizontal and with scrolling support!)
Expand Down
14 changes: 14 additions & 0 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ icon:setDropdown({
,
Icon.new()
:setLabel("Category 4")
:setName("CategoryFourIcon")
:bindEvent("selected", function(self)
print(("%s was selected!"):format(self.name))
end)
:bindEvent("deselected", function(self)
print(("%s was deselected!"):format(self.name))
end)
,
})
```
Expand All @@ -114,6 +121,13 @@ icon:setMenu({
,
Icon.new()
:setLabel("Category 4")
:setName("CategoryFourIcon")
:bindEvent("selected", function(self)
print(("%s was selected!"):format(self.name))
end)
:bindEvent("deselected", function(self)
print(("%s was deselected!"):format(self.name))
end)
,
})
```
Expand Down

0 comments on commit a5b15b1

Please sign in to comment.