Skip to content

Commit

Permalink
Merge pull request #36 from CSCfi/feature/ui-schemas
Browse files Browse the repository at this point in the history
Add ui schemas for styling form elements
  • Loading branch information
otahontas authored Jul 22, 2020
2 parents 016381a + 0b1fb25 commit 2f65166
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/ui_schemas/analysis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"description": {
"ui:widget": "textarea",
"ui:options": {
"rows": 5
}
}
}
11 changes: 11 additions & 0 deletions src/components/ui_schemas/dataset.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"datasetType": {
"ui:widget": "checkboxes"
},
"description": {
"ui:widget": "textarea",
"ui:options": {
"rows": 10
}
}
}
21 changes: 21 additions & 0 deletions src/components/ui_schemas/experiment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"description": {
"ui:widget": "textarea",
"ui:options": {
"rows": 5
}
},
"desgin": {
"sampleRef": {},
"libraryDescriptor": {
"targetLoci": {
"description": {
"ui:widget": "textarea",
"ui:options": {
"rows": 5
}
}
}
}
}
}
10 changes: 10 additions & 0 deletions src/components/ui_schemas/policy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"policy": {
"policyText": {
"ui:widget": "textarea",
"ui:options": {
"rows": 10
}
}
}
}
8 changes: 8 additions & 0 deletions src/components/ui_schemas/run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"description": {
"ui:widget": "textarea",
"ui:options": {
"rows": 5
}
}
}
8 changes: 8 additions & 0 deletions src/components/ui_schemas/sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"description": {
"ui:widget": "textarea",
"ui:options": {
"rows": 5
}
}
}
8 changes: 8 additions & 0 deletions src/components/ui_schemas/study.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"studyDescription": {
"ui:widget": "textarea",
"ui:options": {
"rows": 5
}
}
}

0 comments on commit 2f65166

Please sign in to comment.