Skip to content

Commit 13682db

Browse files
committed
hidden, disabled, tableview and modal edit removed from component editview
1 parent dc2ed57 commit 13682db

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
**/coverage
1212
**/cypress/videos
1313
**/cypress/screenshots
14+
/.vscode
1415

1516

1617
# production
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import Container from "formiojs/components/container/Container";
2+
import ContainerEditForm from "formiojs/components/container/Container.form";
3+
import ContainerDisplayEditForm from "formiojs/components/container/editForm/Container.edit.display";
4+
5+
Container.editForm = () => {
6+
return ContainerEditForm([
7+
{
8+
label: "Display",
9+
key: "display",
10+
components: [
11+
...ContainerDisplayEditForm,
12+
{
13+
key: "hidden",
14+
ignore: true,
15+
},
16+
{
17+
key: "disabled",
18+
ignore: true,
19+
},
20+
{
21+
key: "tableView",
22+
ignore: true,
23+
},
24+
{
25+
key: "modalEdit",
26+
ignore: true,
27+
},
28+
],
29+
},
30+
]);
31+
};
32+
33+
export default Container;

packages/shared-components/src/customComponents/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import AlertStripe from "./components/AlertStripe";
2+
import Container from "./components/Container";
23
import CountrySelect from "./components/CountrySelect";
34
import DataGrid from "./components/DataGrid";
45
import Day from "./components/Day";
@@ -17,6 +18,7 @@ import Textarea from "./components/TextArea";
1718
import TextField from "./components/TextField";
1819

1920
const customComponents = {
21+
container: Container,
2022
alertstripe: AlertStripe,
2123
fnrfield: Fodselsnummer,
2224
orgNr: OrganizationNumber,

0 commit comments

Comments
 (0)