From 2f964c6ed3d63858527e0ba1955ebf1f0c468aae Mon Sep 17 00:00:00 2001 From: Insality Date: Sun, 17 Jul 2022 19:22:36 +0300 Subject: [PATCH] Update docs --- docs_md/01-components.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs_md/01-components.md b/docs_md/01-components.md index ed81422..892b8d1 100644 --- a/docs_md/01-components.md +++ b/docs_md/01-components.md @@ -404,7 +404,7 @@ local druid = require("druid.druid") local hotkey = require("druid.extended.hotkey") druid.register("hotkey", hotkey) ``` -Create drag component with druid: `hotkey = druid:new_hotkey(keys_array, callback, [callback_argument])` +Create hotkey component with druid: `hotkey = druid:new_hotkey(keys_array, callback, [callback_argument])` ### Notes - Hotkey callback is similar with button callback: (self, callback_argument) @@ -428,7 +428,7 @@ local druid = require("druid.druid") local layout = require("druid.extended.layout") druid.register("layout", layout) ``` -Create drag component with druid: `layout = druid:new_layout(node, layout_mode, on_size_change_callback)` +Create layout component with druid: `layout = druid:new_layout(node, layout_mode, on_size_change_callback)` ### Notes