Skip to content

Commit

Permalink
add row configurable via json
Browse files Browse the repository at this point in the history
  • Loading branch information
vedina committed Jul 15, 2024
1 parent db55ef4 commit 9d8ac0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,7 @@
background: #4f7dcc26 !important;
}

.sd-matrixdynamic__add-btn > span {
display: none !important;
}

.sd-matrixdynamic__add-btn::after {
content: "Add Empty Row";
}
#sv-nav-clear-page input,
#sv-nav-clear-all input {
/* border: 1px solid #e50a3e; */
Expand Down
5 changes: 4 additions & 1 deletion src/SurveyComp/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export const json = {
rowCount: 0,
confirmDelete: true,
allowRowsDragAndDrop: true,
addRowText: "Add experimental factor"
},
{
startWithNewLine: true,
Expand Down Expand Up @@ -841,6 +842,7 @@ export const json = {
name: "raw_data_report",
visibleIf: "{data_sheets} contains 'data_raw'",
title: "Unprocessed (Raw data) reporting",
addRowText: "Add empty row",
description:
"Please provide information of the parameters reported as unprocessed data (e.g. Absorbance, AU). Use the + button to specify which factors are varied. If your data is in separate files you may use the 'Pointer to file' type.",
requiredIf:
Expand Down Expand Up @@ -973,6 +975,7 @@ export const json = {
{
type: "matrixdynamic",
name: "question3",
addRowText: "Add empty row",
title: "Results reporting",
visibleIf: "{data_sheets} contains 'data_processed'",
description:
Expand Down Expand Up @@ -1687,7 +1690,7 @@ export const json = {
title: "[{template_name}]: Preview/Finalize",
description:
"A finalized blueprint will become readonly. You will be able to generate Excel templates, share the blueprint and make copies of the blueprint.",
navigationTitle: "Preview/Finalize",
navigationTitle: "8. Preview/Finalize",
navigationDescription: "Predefined fields describing provenance",
},
],
Expand Down

0 comments on commit 9d8ac0c

Please sign in to comment.