Filväljare används för att välja filer.
Visa kod
<template >
<f-file-selector accept ="application/pdf, image/jpeg, image/tiff, image/png" >
Lägg till fil
</f-file-selector >
</template >
<script >
import { defineComponent } from "vue" ;
import { FFileSelector } from "@fkui/vue" ;
export default defineComponent ({
name : "FFileSelectorEnabled" ,
components : { FFileSelector },
});
</script >
Visa kod
<template >
<f-file-selector id ="dis" accept ="image/jpeg, image/tiff" disabled >
Lägg till fil
</f-file-selector >
</template >
<script >
import { defineComponent } from "vue" ;
import { FFileSelector } from "@fkui/vue" ;
export default defineComponent ({
name : "FFileSelectorDisabled" ,
components : { FFileSelector },
});
</script >
Props Name Description Type Required Default id
The id for the input id attribute.
The id for the label for attribute.
If the prop is not set a random value will be generated.
string
false
() => ElementIdService.generateElementId()
disabled
‐
boolean
false
false
Events Name Description Properties change
‐
‐
input
V-model event.
<anonymous>: FileList
Slots Name Description Bindings default
‐
‐