Skip to content

Commit 5d08c62

Browse files
authored
Merge pull request #359 from rvsia/PF4duallist
feat(pf4): add duallist component
2 parents 0d8dfb8 + e59e763 commit 5d08c62

File tree

13 files changed

+819
-11
lines changed

13 files changed

+819
-11
lines changed

packages/pf4-component-mapper/demo/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7-
<link rel="stylesheet" type="text/css" href="https://unpkg.com/@patternfly/[email protected]/patternfly-base.css"/>
7+
<link rel="stylesheet" type="text/css" href="https://unpkg.com/@patternfly/[email protected]/patternfly-base.css"/>
8+
<link rel="stylesheet" type="text/css" href="https://unpkg.com/@patternfly/[email protected]/patternfly-addons.css"/>
89
<title>Data driven forms</title>
910
</head>
1011
<body>

packages/pf4-component-mapper/src/form-fields/component-mapper.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
import Wizard from './wizard/wizard';
1717
import { Select } from './select/select';
1818
import FieldArray from './fieldArray/index';
19+
import DualListSelect from './dual-list-select';
1920

2021
const mapper = {
2122
[componentTypes.TEXT_FIELD]: TextField,
@@ -31,6 +32,7 @@ const mapper = {
3132
[componentTypes.SWITCH]: SwitchField,
3233
[componentTypes.PLAIN_TEXT]: PlainTextField,
3334
[componentTypes.FIELD_ARRAY]: FieldArray,
35+
'dual-list-select': DualListSelect,
3436
};
3537

3638
export default mapper;
@@ -45,6 +47,7 @@ export const components = {
4547
TimePickerField,
4648
SwitchField,
4749
PlainTextField,
50+
DualListSelect,
4851
};
4952

5053
export const rawComponents = {

0 commit comments

Comments
 (0)