All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fluorumlabs.disconnect.vaadin.elements.UploadFileElement Maven / Gradle / Ivy

The newest version!
package com.github.fluorumlabs.disconnect.vaadin.elements;

import com.github.fluorumlabs.disconnect.core.annotations.Import;
import com.github.fluorumlabs.disconnect.core.annotations.NpmPackage;
import com.github.fluorumlabs.disconnect.vaadin.Vaadin;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.ThemableMixin;
import com.github.fluorumlabs.disconnect.vaadin.types.UploadingFile;
import js.web.dom.HTMLElement;
import org.teavm.jso.JSProperty;

import javax.annotation.Nullable;

/**
 * <vaadin-upload-file> element represents a file in the file list of <vaadin-upload>
 * .
 *
 * 

Styling

* The following shadow DOM parts are available for styling: * * * * * * * * * * * * * * * * * * * * *
Part nameDescription
rowFile container
infoContainer for file status icon, file name, status and error messages
done-iconFile done status icon
warning-iconFile warning status icon
metaContainer for file name, status and error messages
nameFile name
errorError message, shown when error happens
statusStatus message
commandsContainer for file command icons
start-buttonStart file upload button
retry-buttonRetry file upload button
clear-buttonClear file button
progressProgress bar
* The following state attributes are available for styling: * * * * * * * * * * * *
AttributeDescriptionPart name
errorAn error has happened during uploading:host
indeterminateUploading is in progress, but the progress value is * unknown:host
uploadingUploading is in progress:host
completeUploading has finished successfully:host
* See * ThemableMixin – how to apply styles for shadow parts */ @NpmPackage( name = "@vaadin/vaadin", version = Vaadin.VERSION ) @Import( module = "@vaadin/vaadin-upload/theme/lumo/vaadin-upload-file.js" ) public interface UploadFileElement extends HTMLElement, ThemableMixin { static String TAGNAME() { return "vaadin-upload-file"; } /** * */ @Nullable @JSProperty UploadingFile getFile(); /** * */ @JSProperty void setFile(UploadingFile file); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy