Line data Source code
1 : /*
2 : * Copyright (C) 2016 Red Hat, Inc.
3 : * SPDX-License-Identifier: LGPL-2.1-or-later
4 : */
5 :
6 5 : import React from "react";
7 : import { Form, FormGroup } from "@patternfly/react-core/dist/esm/components/Form/index.js";
8 : import { TextInput } from "@patternfly/react-core/dist/esm/components/TextInput/index.js";
9 :
10 : /* Sample dialog body
11 : */
12 5 : export class PatternDialogBody extends React.Component {
13 0 : selectChanged(value) {
14 0 : console.log("new value: " + value);
15 0 : }
16 :
17 0 : render() {
18 0 : return (
19 0 : <Form isHorizontal>
20 0 : <FormGroup fieldId="control-1" label='Label'>
21 0 : <TextInput id="control-1" />
22 0 : </FormGroup>
23 0 : </Form>
24 : );
25 0 : }
26 5 : }
|