# Add binding and scripting to vision component

**URL:** <https://forum.inductiveautomation.com/t/add-binding-and-scripting-to-vision-component/44650>\
**Category:** Module Development\
**Tags:** vision, scripting\
**Created:** [March 18, 2021, 7:23pm UTC](https://forum.inductiveautomation.com/t/add-binding-and-scripting-to-vision-component/44650 "2021-03-18T19:23:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 22, 2021, 1:21pm UTC](https://forum.inductiveautomation.com/t/add-binding-and-scripting-to-vision-component/44650/3 "2021-03-22T13:21:36Z")

</div>

You don't _add_ binding to your component, but simply _support_ binding to your properties by marking them as such in your component's beaninfo. Bindings themselves are not part of a component--they are stored in a window's InteractionController.

Event script support is automatically available to all components. Extension functions can be supported by setting them up in the beaninfo. This post from last year shows all of this:

> [@Adding Data & selectedRow Properties to Custom Module](http://forum.inductiveautomation.com/t/adding-data-selectedrow-properties-to-custom-module/38223/4):
>
> I guess I can share how NoteChart does this with the Classic Chart–you’ll have to adapt for the Power Table: public class NoteChartBeanInfo extends CommonBeanInfo { public NoteChartBeanInfo() { super(NoteChart.class, new CustomizerDescriptor[] { ChartCustomizer.VALUE\_DESCRIPTOR }); getBeanDescriptor().setValue("dbl-click-customizer", ChartCustomizer.VALUE\_DESCRIPTOR.getValueName()); } @Override protected void initProperties() throws IntrospectionException { // Adds common proper…

Note that all of these features are intended to allow your users to attach functionality to your components at design-time. If you want functionality to be built-in, you should be attaching your own event listeners (in java) to your components at component creation time. You should not be populating design-time data structures.

---

_[View the full topic](https://forum.inductiveautomation.com/t/add-binding-and-scripting-to-vision-component/44650)._
