MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / render

Method render

types/reactstrap-tests.tsx:2912–2949  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2910 }
2911
2912 render() {
2913 return (
2914 <div>
2915 <Form onSubmit={(e) => e.preventDefault()}>
2916 <FormGroup>
2917 <Label for="focusAfterClose">Focus After Close</Label>
2918 <Input
2919 className="mx-2"
2920 type="select"
2921 id="focusAfterClose"
2922 onChange={this.handleSelectChange}
2923 >
2924 <option value="true">Yes</option>
2925 <option value="false">No</option>
2926 </Input>
2927 </FormGroup>
2928 <Button color="danger" onClick={this.toggle}>
2929 Open
2930 </Button>
2931 </Form>
2932 <Modal
2933 returnFocusAfterClose={this.state.focusAfterClose}
2934 isOpen={this.state.open}
2935 >
2936 <ModalBody>
2937 Observe the "Open" button. It will be focused after close when
2938 "returnFocusAfterClose" is true and will not be focused if
2939 "returnFocusAfterClose" is false.
2940 </ModalBody>
2941 <ModalFooter>
2942 <Button color="primary" onClick={this.toggle}>
2943 Close
2944 </Button>
2945 </ModalFooter>
2946 </Modal>
2947 </div>
2948 );
2949 }
2950}
2951
2952class Example75 extends React.Component<any, any> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected