Polymer Paper-Radio-Group inside table

123 Views Asked by At

I'm trying to add a paper-radio-group inside a table. When trying the wrap the paper-radio-group around the td-tags it stops working. The paper-radio-button continue to work individually, but not as a group.

<tr>
 <td>
     <paper-radio-group selected="a">
     <paper-radio-button name="a"></paper-radio-button>
 </td>
 <td>
     <paper-radio-button name="b"></paper-radio-button>
     </paper-radio-group>
 </td>     
</tr>
1

There are 1 best solutions below

0
Vipul Solanki On

paper-radio-button is a button that can be either checked or unchecked. User can tap the radio button to check or uncheck it.

Use a <paper-radio-group> to group a set of radio buttons. When radio buttons are inside a radio group, exactly one radio button in the group can be checked at any time.

Read the Read me file of paper-radio-button. use paper-radio-group to group a set of radio buttons.