mirror of
https://github.com/Insality/druid
synced 2025-06-27 18:37:45 +02:00
2.0 KiB
2.0 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): Druid component to manage the size and positions with other containers relations to create a adaptable layouts.
- 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.
- 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
- on_change_value (event.event): fun(text) Event triggered when the value of the input changes.