2025-03-20 00:26:29 +02:00

1.8 KiB

druid.widget.property_input API

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

Functions

Fields

init


property_input:init()

set_text_property


property_input:set_text_property(text)
  • Parameters:

    • text (string):
  • Returns:

    • `` (druid.widget.property_input):

set_text_value


property_input:set_text_value(text)
  • Parameters:

    • text (string|number):
  • Returns:

    • `` (druid.widget.property_input):

on_change


property_input:on_change(callback, [callback_context])
  • Parameters:
    • callback (fun(self: druid.widget.property_input, text: string)):
    • [callback_context] (any):

Fields

  • root (node)

  • container (druid.container): The component used for managing the size and positions with other containers relations to create a adaptable layouts

  • text_name (druid.text): The component to handle text behaviour over a GUI Text node, mainly used to automatically adjust text size to fit the text area

  • button (druid.button): Druid component to make clickable node with various interaction callbacks

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

  • selected (node)

  • rich_input (druid.rich_input): The component that handles a rich text input field, it's a wrapper around the druid.input component