I can bind several paper-radio-button buttons within a group, indicating that the buttons are direct children of paper-radio-group .
<paper-radio-group selected="{{someProperty}}"> <paper-radio-button name="foo">Foo</paper-radio-button> <paper-radio-button name="bar">Bar</paper-radio-button> <paper-radio-button name="baz">Baz</paper-radio-button> </paper-radio-group>
However, if I wrap one of the paper-radio-button with a div like this, it loses touch with the group (so that you can select both the wrapped button and one of the others). This is a problem because I want to give this button a tooltip.
<paper-radio-group selected="{{someProperty}}"> <paper-radio-button name="foo">Foo</paper-radio-button> <paper-radio-button name="bar">Bar</paper-radio-button> <div> <paper-radio-button name="baz">Baz</paper-radio-button> <paper-tooltip>Tooltip text for baz.</paper-tooltip> </div> </paper-radio-group>
I tried using the for attribute for the tooltip paper, but this does not make a tooltip only when this particular button freezes.
How can I associate paper-radio-button with paper-radio-group without having a direct child button?
source share