mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 10:02:18 +02:00
Update examples to widgets instead components
This commit is contained in:
@@ -92,7 +92,7 @@ function M:add_example(examples, druid_example)
|
||||
local instance
|
||||
if example_data.widget_class then
|
||||
instance = druid_example.druid:new_widget(example_data.widget_class, example_data.template)
|
||||
else
|
||||
elseif example_data.component_class then -- Keep for backward compatibility
|
||||
instance = druid_example.druid:new(example_data.component_class, example_data.template)
|
||||
end
|
||||
---@cast instance druid.component|druid.widget
|
||||
|
Reference in New Issue
Block a user