How do I pass parameters into a custom component?

I have created a custom component that has a property jsonobject.

I initialize it as follows:

    self.json_browser_1.jsonobject = {"one": 1}

Then in the component, I don’t know how to access it. I have the following code that preduces None for jsonobject.

  def __init__(self, **properties):
    # Set Form properties and Data Bindings.
    self.init_components(**properties)
    print("jsonobject", dir(self), properties, self.jsonobject, self.item)

How do I set properties on a custom component?

I’d recommend checking out the Custom Component Properties docs. If that doesn’t help, please could you let us know so we can improve the page?

Thanks!

Here is a deeper explanation of how data binding and custom component properties work: About data binding with custom components