-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325 from dynamic-forms/feature/16.0.x-improvements
Release of 16.0.0-next.5
- Loading branch information
Showing
33 changed files
with
1,880 additions
and
1,202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
219 changes: 219 additions & 0 deletions
219
apps/demo/src/assets/examples/inputs/add-ons/inputs-add-ons-button.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,219 @@ | ||
{ | ||
"template": { | ||
"label": "Inputs with add-ons" | ||
}, | ||
"children": [ | ||
{ | ||
"key": "combobox", | ||
"type": "control", | ||
"template": { | ||
"label": "Combobox", | ||
"input": { | ||
"type": "combobox", | ||
"placeholder": "Enter a text", | ||
"defaultValue": "Value1", | ||
"options": [ | ||
"Value1", | ||
"Value2", | ||
"Value3" | ||
] | ||
}, | ||
"validation": { | ||
"required": true | ||
} | ||
}, | ||
"suffixAddOn": { | ||
"type": "button", | ||
"template": { | ||
"type": "button", | ||
"label": "Clear", | ||
"action": "clear", | ||
"color": "inputAction" | ||
} | ||
} | ||
}, | ||
{ | ||
"key": "datepicker", | ||
"type": "control", | ||
"template": { | ||
"label": "Datepicker", | ||
"input": { | ||
"type": "datepicker", | ||
"placeholder": "Enter a date", | ||
"defaultValue": "2019-01-01" | ||
}, | ||
"validation": { | ||
"required": true | ||
} | ||
}, | ||
"suffixAddOn": { | ||
"type": "button", | ||
"template": { | ||
"type": "button", | ||
"label": "Clear", | ||
"action": "clear", | ||
"color": "inputAction" | ||
} | ||
} | ||
}, | ||
{ | ||
"key": "file", | ||
"type": "control", | ||
"template": { | ||
"label": "File", | ||
"input": { | ||
"type": "file", | ||
"placeholder": "Upload a file" | ||
}, | ||
"validation": { | ||
"required": true | ||
} | ||
}, | ||
"suffixAddOn": { | ||
"type": "button", | ||
"template": { | ||
"type": "button", | ||
"label": "Clear", | ||
"action": "clear", | ||
"color": "inputAction" | ||
} | ||
} | ||
}, | ||
{ | ||
"key": "numberbox", | ||
"type": "control", | ||
"template": { | ||
"label": "Numberbox", | ||
"input": { | ||
"type": "numberbox", | ||
"placeholder": "Enter a number", | ||
"defaultValue": 0.01 | ||
}, | ||
"validation": { | ||
"required": true | ||
} | ||
}, | ||
"suffixAddOn": { | ||
"type": "button", | ||
"template": { | ||
"type": "button", | ||
"label": "Clear", | ||
"action": "clear", | ||
"color": "inputAction" | ||
} | ||
} | ||
}, | ||
{ | ||
"key": "select", | ||
"type": "control", | ||
"template": { | ||
"label": "Select", | ||
"input": { | ||
"type": "select", | ||
"placeholder": "Select an option", | ||
"defaultValue": 1, | ||
"options": [ | ||
{ | ||
"value": 1, | ||
"label": "Option 1" | ||
}, | ||
{ | ||
"value": 2, | ||
"label": "Option 2" | ||
} | ||
] | ||
}, | ||
"validation": { | ||
"required": true | ||
} | ||
}, | ||
"suffixAddOn": { | ||
"type": "button", | ||
"template": { | ||
"type": "button", | ||
"label": "Clear", | ||
"action": "clear", | ||
"color": "inputAction" | ||
} | ||
} | ||
}, | ||
{ | ||
"key": "textarea", | ||
"type": "control", | ||
"template": { | ||
"label": "Textarea", | ||
"input": { | ||
"type": "textarea", | ||
"placeholder": "Enter a text", | ||
"defaultValue": "Text line 1\nText line 2" | ||
}, | ||
"validation": { | ||
"required": true | ||
} | ||
}, | ||
"suffixAddOn": { | ||
"type": "button", | ||
"template": { | ||
"type": "button", | ||
"label": "Clear", | ||
"action": "clear", | ||
"color": "inputAction" | ||
} | ||
} | ||
}, | ||
{ | ||
"key": "textbox", | ||
"type": "control", | ||
"template": { | ||
"label": "Textbox", | ||
"input": { | ||
"type": "textbox", | ||
"placeholder": "Enter a text", | ||
"defaultValue": "Text 1, Text 2" | ||
}, | ||
"validation": { | ||
"required": true | ||
} | ||
}, | ||
"suffixAddOn": { | ||
"type": "button", | ||
"template": { | ||
"type": "button", | ||
"label": "Clear", | ||
"action": "clear", | ||
"color": "inputAction" | ||
} | ||
} | ||
} | ||
], | ||
"footerActions": [ | ||
{ | ||
"id": "action-submit", | ||
"type": "button", | ||
"template": { | ||
"type": "submit", | ||
"label": "Submit" | ||
}, | ||
"expressions": { | ||
"disabled": "data.root.status !== 'VALID'" | ||
} | ||
}, | ||
{ | ||
"id": "action-reset", | ||
"type": "button", | ||
"template": { | ||
"type": "reset", | ||
"label": "Reset" | ||
} | ||
}, | ||
{ | ||
"id": "action-reset-default", | ||
"type": "button", | ||
"template": { | ||
"type": "button", | ||
"label": "Reset default", | ||
"action": "resetDefault" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.