Radu M.
Radu M.

Reputation: 5738

RadioGroup is generating input[type=button] instead of type=radio

When creating a xtype=radiogroup, the rendered element is using input type=button instead of input type=radio, I took the example from the doc, put it into a fiddle and the same happens. Tried this in Firefox and Chrome.

Why is not generating radio inputs, and how can I fix this ?

enter image description here

Upvotes: 0

Views: 372

Answers (1)

Molecular Man
Molecular Man

Reputation: 22386

This is a correct behavior. ExtJs is using input type=button to render radiogroup. These inputs are styled with css to look like real radio buttons.

As @matt has mentioned the reason for using input type=button is that a radio box's color, border and background cannot be styled using CSS.

In your fiddle inputs look like plain buttons because jsfiddle didn't load ext-all.css properly. If you add ext-all.css manualy (like I did in this fiddle) you will see that all inputs appear as if they were radio buttons.

Upvotes: 1

Related Questions