import * as React from "react"; import {MmuiDropChoiceSingleComponent, MmuiDropChoiceSingleProps} from "../../mmui-react-component"; import {renderDropChoiceDropdown} from "./common"; export interface MmuiBlueDropChoiceMultipleProps extends MmuiDropChoiceSingleProps { } export class MmuiBlueDropChoiceSingleComponent

extends MmuiDropChoiceSingleComponent

{ constructor(props) { super(props); } renderChoiceInput(choice) { const choiceInputProps: any = { id: choice.id, name: choice.name, value: choice.value, checked: choice.isChecked, }, choiceStyle: any = { display: 'block' }; if (choice.isParent) { choiceInputProps['data-isparent'] = 'true'; } else { choiceInputProps['data-parentid'] = choice.parentValue; } if (!choice.isVisible) { choiceStyle.display = 'none'; } return (

); } renderDropdown(summaryDisplayRender, filterInput, selectAllCheck, choiceInputElmts, tooltip){ return renderDropChoiceDropdown(this, summaryDisplayRender, filterInput, selectAllCheck, choiceInputElmts, tooltip); } }