Problem with creating a custom radio control


I would like to create a custom radio control.
I have copied the part “dhx.protoUI({ name:“radio”,…” from touchui_debug.js for a good start. Renamed “radio” to “radio2” and create a html test file:

After loading i got the error:

“this._settings is undefined” in “if (this._settings.options){ test_radio.js” line 25.

Can someone help me?




all properties that start with “_” are private. They are available in touchui_debug.js and renamed in touchui.js. You should use only public variables:

if (this.config.options)

instead of

if (this._settings.options)