Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
n1crack committed Jan 23, 2024
1 parent b0b32dc commit f8e50b5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
id='my_vuefinder'
:max-file-size="maxFileSize"
:url="url"
@select="handleSelect"
/>
</div>
</template>
Expand All @@ -14,7 +15,14 @@ import { ref } from 'vue';
// CHANGE ME, Url for development server endpoint
const url = ref("http://localhost:8005/")
const maxFileSize = ref("500MB")
</script>
// an example how to show selected files, outside of vuefinder
// you can create a ref object and assign the items to it,
// then with a button click, you can get the selected items easily
const handleSelect = (selection) => {
console.log(selection)
}
</script>

<style>
body {
Expand Down

0 comments on commit f8e50b5

Please sign in to comment.