12/28/2023 0 Comments Download react final form examples![]() ![]() Called with a reference to the underlying Element instance. Triggered when the Element is fully rendered and can accept imperative element.focus() calls. Triggered when the Element receives focus. Triggered when data exposed by this Element is changed (for example, when there is an error).įor more information, refer to the Stripe.js reference. See available options for the Payment Element or available options for individual payment method Elements. If absent it will display a ‘standard’ file icon.Īll other props will be passed to the li element that makes up FileItem.Passes through to the Element’s container.Īn object containing Element configuration options. FileItem will attempt to display the most appropriate icon based on this value. This should be a number between 0 and 100 representing the percentage to show on the progress bar. If inProgress is true, then the progress prop must also be supplied. ![]() If true, a progress bar will be displayed underneath the file (designed to show upload progress). If this prop is not supplied the download button will not be rendered. If downloadFile is a string, then the download button will be a link, and when clicked it will navigate to the value of downloadFile. If downloadFile is a function, it will be called when the download file button is pressed. It should remove the file from the field.įunction) optional. An event handler that is passed to the delete buttons onClick. It selects the appropriate font-awesome icon based on the mime-type, and provides adds two buttons to delete and download the file. The API for react-final-form-file-field consists of 2 components ( FileItem and FilesField and 1 hook ( useFilesField). Const MyFileUploader = ( = useFilesField(
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |