Add examples to component docs

This commit is contained in:
Insality
2020-02-23 13:00:59 +03:00
parent c2b65eb4e2
commit cb6fd3038a
5 changed files with 25 additions and 2 deletions

View File

@@ -1,6 +1,17 @@
--- Component to handle basic GUI button
-- @module druid.button
--- Component events
-- @tfield druid_event on_click
-- @tfield druid_event on_hold_click
-- @tfield druid_event on_long_click
-- @tfield druid_event on_double_click
-- @table events
--- Component fields
-- @tfield node Main node
-- @table fields
local Event = require("druid.event")
local const = require("druid.const")
local helper = require("druid.helper")