Update with rich input changes

This commit is contained in:
Insality
2025-11-26 10:22:51 +02:00
parent 93b2d3f1f8
commit 4e8c071c66
4 changed files with 463 additions and 16 deletions

View File

@@ -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