Debian Codegraph @

pkg/playground/react-demo-dialog.jsx

raw
1 /*
2 * Copyright (C) 2016 Red Hat, Inc.
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6 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 export class PatternDialogBody extends React.Component {
13 selectChanged(value) {
14 console.log("new value: " + value);
15 }
16
17 render() {
18 return (
19 <Form isHorizontal>
20 <FormGroup fieldId="control-1" label='Label'>
21 <TextInput id="control-1" />
22 </FormGroup>
23 </Form>
24 );
25 }
26 }