Skip to content

Commit

Permalink
Add validation
Browse files Browse the repository at this point in the history
  • Loading branch information
chungchunwang committed May 15, 2023
1 parent 27a56a2 commit 9503a62
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Budibase-File-Upload",
"version": "1.1.1",
"version": "1.1.2",
"description": "An amazing Budibase component!",
"license": "MIT",
"svelte": "index.js",
Expand Down
5 changes: 5 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
"type": "event",
"key": "onChange",
"label": "On Change"
},
{
"type": "validation/string",
"label": "Validation",
"key": "validation"
}
],
"info": "Created by chungchunwang on GitHub at: https://github.com/chungchunwang/Budibase-File-Upload. You can find detailed instructions there. Please report any issues or feature requests to the GitHub repo (or perhaps star!)."
Expand Down
3 changes: 2 additions & 1 deletion src/Component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
export let acceptedFiles;
export let encodingProtection;
export let useBlobURL;
export let validation;
//Getting budibase API
const { styleable } = getContext("sdk");
Expand All @@ -34,7 +35,7 @@
"text",
0,
false,
null,
validation,
formStep
);
$: unsubscribe = formField?.subscribe((value) => {
Expand Down

0 comments on commit 9503a62

Please sign in to comment.