Comments (4)
There is no such feature yet, but I definitely want it to be implemented. I just need to figure out how to give the user the opportunity to do custom styles (user defined CSS variables or something different) and keep angular style encapsulation.
If you have some suggestions on how to do it, I would like to hear from you!
from ng2-image-upload.
In my case, I had no problems in overriding the styles in the application css file.
Certain styles required an !important attribute though.
ie.
.upload-button { float: none !important; display: block !important; text-align: center; }
from ng2-image-upload.
Did you manage to override for example .image-upload border styles?
from ng2-image-upload.
Yes .image-upload borders simply set a css style and it'd override without !important.
For reference, these were my customizations.
I removed the container border and background color, hid the drag box area, and turned the button into a block element so I could centralise it.
.image-upload {
border: 0;
}
.file-upload {
background: 0;
}
.drag-box-message {
display: none;
}
.upload-button {
float: none !important;
display: block !important;
text-align: center;
}
from ng2-image-upload.
Related Issues (20)
- upload image in form HOT 1
- Caption for button and dropBoxMessage not working with angular 6
- Progress while image is uploading?
- Accepted extensions are not enforced when selecting files via file input
- Custom Image Preview. HOT 1
- Error when uploading multiple images
- Set required
- if [max]="1" is set and clear button hit, js error is thrown
- How to override ImageService?
- Support for angular 7 HOT 2
- “angular2-image-upload” npm library CORS error HOT 1
- Error on upload_multiple images
- Can I send cookies to server?
- How to upload to AWS
- [max] ignored [uploadedFiles] HOT 1
- Error State and Message are not reflected on uploadStateChanged Event
- got parameter parse error
- suport angular 9? HOT 3
- Support to Angular 11
- when disable true cross icon also disable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng2-image-upload.