mirror of
https://github.com/Insality/druid
synced 2025-09-27 10:02:19 +02:00
Basic examples done
This commit is contained in:
@@ -14,4 +14,21 @@ function M:init()
|
||||
end
|
||||
|
||||
|
||||
---@param output_log output_list
|
||||
function M:on_example_created(output_log)
|
||||
self.input.on_input_select:subscribe(function()
|
||||
output_log:add_log_text("Input Selected")
|
||||
end)
|
||||
self.input_2.on_input_select:subscribe(function()
|
||||
output_log:add_log_text("Input 2 Selected")
|
||||
end)
|
||||
self.input.on_input_unselect:subscribe(function(_, text)
|
||||
output_log:add_log_text("Input Deselected. Text: " .. text)
|
||||
end)
|
||||
self.input_2.on_input_unselect:subscribe(function(_, text)
|
||||
output_log:add_log_text("Input Deselected. Text: " .. text)
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
return M
|
||||
|
@@ -15,4 +15,12 @@ function M:init()
|
||||
end
|
||||
|
||||
|
||||
---@param output_log output_list
|
||||
function M:on_example_created(output_log)
|
||||
self.input.on_input_unselect:subscribe(function(_, text)
|
||||
output_log:add_log_text("Input: " .. text)
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
return M
|
||||
|
@@ -13,4 +13,15 @@ function M:init()
|
||||
end
|
||||
|
||||
|
||||
---@param output_log output_list
|
||||
function M:on_example_created(output_log)
|
||||
self.rich_input.input.on_input_unselect:subscribe(function(_, text)
|
||||
output_log:add_log_text("Input: " .. text)
|
||||
end)
|
||||
self.rich_input_2.input.on_input_unselect:subscribe(function(_, text)
|
||||
output_log:add_log_text("Input 2: " .. text)
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
return M
|
||||
|
Reference in New Issue
Block a user