Filepicker.io Web - disable inline styles

I am having problems designing the filepicker.io widget for the web, in particular filepicker-dragdrop .

Is there any way to disable inline style and replace them with classes? Something like data-fp-disable-styles or perhaps when using data-fp-dropzone-class="..." inline style is automatically disabled.

Although you can add classes to the button with the data-fp-button-class attribute, I cannot get rid of the inline style in the dropzone and div container.

+2
source share
1 answer

You can set the class parameters data-fp-drag-class and data-fp to set the divzone style and div container and use the flag! important for any styles that you want to use to override inline styles.

If you are looking for a more customizable solution, we recommend using the raw javascript api to create your own drag and drop panel (https://developers.filepicker.io/docs/web/#widgets-droppane) and / or select button

+2
source

Source: https://habr.com/ru/post/1433686/


All Articles