office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
27 lines • 839 B
JavaScript
import * as React from 'react';
import { ChoiceGroup } from 'office-ui-fabric-react/lib/ChoiceGroup';
export var ChoiceGroupBasicExample = function () {
return (React.createElement(ChoiceGroup, { className: "defaultChoiceGroup", defaultSelectedKey: "B", options: [
{
key: 'A',
text: 'Option A'
},
{
key: 'B',
text: 'Option B'
},
{
key: 'C',
text: 'Option C',
disabled: true
},
{
key: 'D',
text: 'Option D'
}
], onChange: _onChange, label: "Pick one", required: true }));
};
function _onChange(ev, option) {
console.dir(option);
}
//# sourceMappingURL=ChoiceGroup.Basic.Example.js.map