@nospamproxy/core
    Preparing search index...

    A radio button for use in a custom-elements/controls/RadioButtons/RadioButtons!RadioButtons | RadioButtons.

    Additional content outside of the radio button label can be projected via the "content" slot.

    // example.ts
    class Example {
    selected = 0;
    }
    <!-- example.html -->
    <radio-buttons>
    <radio-button choice.bind="0" value.two-way="selected">
    <normal-text value="Foo"></normal-text>
    </radio-button>
    <radio-button choice.bind="1" value.two-way="selected">
    <normal-text value="Bar"></normal-text>
    </radio-button>
    </radio-buttons>

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Type Parameters

      • T

      Returns RadioButton<T>

    Properties

    choice: T

    The value to set when this radio button is selected.

    This should be some kind of identifier for this radio button.

    disabled: boolean = false

    True to manually disable this radio button.

    group: string

    The radio button group.

    By default the group of the parent choice list is used.

    value: T

    Two way binding for the currently selected value.

    Methods

    • Returns void