2025-05-02 12:53:32 +03:00

1.9 KiB

druid.widget.property_checkbox API

at /druid/widget/properties_panel/properties/property_checkbox.lua

Functions

Fields

init


property_checkbox:init()

set_value


property_checkbox:set_value(value, [is_instant])
  • Parameters:
    • value (boolean):
    • [is_instant] (any):

get_value


property_checkbox:get_value()
  • Returns:
    • `` (boolean):

on_click


property_checkbox:on_click()

set_text_property


property_checkbox:set_text_property(text)

Set the text property of the checkbox

  • Parameters:
    • text (string):

on_change


property_checkbox:on_change(callback)

Set the callback function for when the checkbox value changes

  • Parameters:
    • callback (function):

Fields

  • root (node)

  • druid (druid.instance): The Druid Factory used to create components

  • text_name (druid.text): Basic Druid text component. Text components by default have the text size adjusting.

  • button (druid.button): Basic Druid input component. Handle input on node and provide different callbacks on touch events.

  • selected (node)

  • icon (node)

  • container (druid.container): Druid component to manage the size and positions with other containers relations to create a adaptable layouts.

  • on_change_value (unknown)