mirror of
https://github.com/Insality/druid
synced 2025-11-26 10:50:54 +01:00
Update with rich input changes
This commit is contained in:
@@ -701,7 +701,7 @@ function M:new_hotkey(keys_array, callback, callback_argument)
|
||||
end
|
||||
|
||||
|
||||
local rich_text = require("druid.custom.rich_text.rich_text")
|
||||
local rich_text = require("druid.extended.rich_text.rich_text")
|
||||
---Create RichText component.
|
||||
---@param text_node string|node The text node to make Rich Text
|
||||
---@param value string|nil The initial text value. Default will be gui.get_text(text_node)
|
||||
@@ -711,15 +711,4 @@ function M:new_rich_text(text_node, value)
|
||||
end
|
||||
|
||||
|
||||
local rich_input = require("druid.custom.rich_input.rich_input")
|
||||
---Create RichInput component.
|
||||
---As a template please check rich_input.gui layout.
|
||||
---@param template string The template string name
|
||||
---@param nodes table|nil Nodes table from gui.clone_tree
|
||||
---@return druid.rich_input rich_input The new rich input component
|
||||
function M:new_rich_input(template, nodes)
|
||||
return self:new(rich_input, template, nodes)
|
||||
end
|
||||
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user