# druid.widget.property_input API > at /druid/widget/properties_panel/properties/property_input.lua ## Functions - [init](#init) - [set_text_property](#set_text_property) - [set_text_value](#set_text_value) - [on_change](#on_change) ## Fields - [root](#root) - [container](#container) - [text_name](#text_name) - [button](#button) - [druid](#druid) - [selected](#selected) - [rich_input](#rich_input) ### init --- ```lua property_input:init() ``` ### set_text_property --- ```lua property_input:set_text_property(text) ``` - **Parameters:** - `text` *(string)*: - **Returns:** - `` *(druid.widget.property_input)*: ### set_text_value --- ```lua property_input:set_text_value(text) ``` - **Parameters:** - `text` *(string|number)*: - **Returns:** - `` *(druid.widget.property_input)*: ### on_change --- ```lua 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