001package gwt.material.design.addins.client.fileuploader.js; 002 003/* 004 * #%L 005 * GwtMaterial 006 * %% 007 * Copyright (C) 2015 - 2017 GwtMaterialDesign 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023 024import jsinterop.annotations.JsPackage; 025import jsinterop.annotations.JsProperty; 026import jsinterop.annotations.JsType; 027 028/** 029 * Options for file uploader component 030 * 031 * @author kevzlou7979 032 */ 033@JsType(isNative = true, name = "Object", namespace = JsPackage.GLOBAL) 034public class JsFileUploaderOptions { 035 036 public String url; 037 038 @JsProperty 039 public int maxFilesize; 040 041 @JsProperty 042 public String method; 043 044 @JsProperty 045 public int maxFiles; 046 047 @JsProperty 048 public String previewTemplate; 049 050 @JsProperty 051 public String acceptedFiles; 052 053 @JsProperty 054 public boolean autoProcessQueue; 055 056 @JsProperty 057 public boolean autoQueue; 058 059 @JsProperty 060 public String previewsContainer; 061 062 @JsProperty 063 public String clickable; 064 065 @JsProperty 066 public boolean withCredentials; 067 068 @JsProperty 069 public String dictDefaultMessage; 070 071 @JsProperty 072 public String dictFallbackMessage; 073 074 @JsProperty 075 public String dictFallbackText; 076 077 @JsProperty 078 public String dictFileTooBig; 079 080 @JsProperty 081 public String dictInvalidFileType; 082 @JsProperty 083 public String dictResponseError; 084 085 @JsProperty 086 public String dictCancelUpload; 087 088 @JsProperty 089 public String dictCancelUploadConfirmation; 090 091 @JsProperty 092 public String dictRemoveFile; 093 094 @JsProperty 095 public String dictMaxFilesExceeded; 096}