This commit is contained in:
Insality
2025-03-29 14:03:03 +02:00
parent b053b5044b
commit 3f22e9c542
27 changed files with 501 additions and 50 deletions

View File

@@ -1,18 +1,12 @@
local component = require("druid.component")
---@class property_checkbox: druid.component
---@field druid druid.instance
---@class property_checkbox: druid.widget
---@field root druid.container
---@field text_name druid.lang_text
---@field button druid.button
---@field selected node
local M = component.create("property_checkbox")
local M = {}
---@param template string
---@param nodes table<hash, node>
function M:init(template, nodes)
self.druid = self:get_druid(template, nodes)
function M:init()
self.root = self.druid:new_container("root") --[[@as druid.container]]
self.icon = self:get_node("icon")