...
Code Block | ||
---|---|---|
| ||
import { InputSelectionHandler} from 'empower-inputs';
let [formElement, setFormElement] = useState({
sampleRadio: {
id: 'sampleRadio',
type: 'radio',
label: "Sample Radio",
value: '',
readOnly: false,
disabled: false,
required: true,
options: [
{
label: "Part-Time",
value: "part-time",
disabled: false,
},
{
label: "Full-Time",
value: "full-time",
disabled: false,
}
]
},
});
..............
return (
<>
<InputSelectionHandler
config={formElement.sampleRadio}
onChanged={(e: any) => inputChangedHandler(e, 'sampleRadio')}
/>
</>
) |
...