Problem with creating a custom radio control

Hi,

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:

bbqweer.eu/checklist/test_radio.html

After loading i got the error:

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

Can someone help me?

Regards,

William

Hi,

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)