# druid.widget.property_button API
> at /druid/widget/properties_panel/properties/property_button.lua
## Functions
- [init](#init)
- [on_click](#on_click)
- [set_text_property](#set_text_property)
- [set_text_button](#set_text_button)
- [set_color](#set_color)
## Fields
- [root](#root)
- [container](#container)
- [text_name](#text_name)
- [button](#button)
- [text_button](#text_button)
- [druid](#druid)
- [selected](#selected)
### init
---
```lua
property_button:init()
```
### on_click
---
```lua
property_button:on_click()
```
### set_text_property
---
```lua
property_button:set_text_property(text)
```
- **Parameters:**
- `text` *(string)*:
- **Returns:**
- `` *(druid.widget.property_button)*:
### set_text_button
---
```lua
property_button:set_text_button(text)
```
- **Parameters:**
- `text` *(string)*:
- **Returns:**
- `` *(druid.widget.property_button)*:
### set_color
---
```lua
property_button:set_color([color_value])
```
- **Parameters:**
- `[color_value]` *(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.
- **text_button** (_druid.text_): Basic Druid text component. Text components by default have the text size adjusting.
- **druid** (_druid.instance_): The Druid Factory used to create components
- **selected** (_node_)