Comments (6)
You can override default styles using /deep/
operator.
ngx-gallery /deep/ .ngx-gallery-icon {
color: red;
background: blue;
}
from ngx-gallery.
I've read that these operators are going to be deprecated in the future. You can read about it in the Angular Component Style Guide. Something to keep in mind.
from ngx-gallery.
I had hoped there would be an alternative way to get to these, but until they come up with a replacement for this, it'll have to do.
from ngx-gallery.
I used a hacky workaround to solve this (mainly because I tend to shy away from /deep/
).
As my project required using Material Font instead of Font Awesome, I made a custom font with just the characters required for the gallery (there are free websites that can do this).
Inside that font's CSS, I included a circle-icon
class. Then, in the gallery, I passed the arrows as: arrowNextIcon: 'gallery-arrow-right circle-icon'
, where "gallery-arrow-right" is my custom font.
Here's the result (with a white background)
from ngx-gallery.
Hi @german-e-mas, you are right with deep
. @TonganJedi would you like option like iconStyle
, for example options.iconStyle = 'color: red; background: blue'
?
from ngx-gallery.
I would like to add a delete functionality using an icon but am not sure how to do it here <ngx-gallery [options]="galleryOptions" [images]="galleryImages">
from ngx-gallery.
Related Issues (20)
- ngx-gallery first time images loading is very slow.
- Preview Download Option To Open In Blank Window
- I need to pass a token authorization (bearer). HOT 16
- How to make "thumbnails on right" gallery with ngx-gallery HOT 1
- Can only see 1 rotate option for rotate images
- It's giving error in angular10 as showing 'Renderer2' is declared here. HOT 10
- I cannot add images coming from my backend Data into Image Array.
- Server Side Rendering (SSR)
- Angular 10 Error HOT 4
- z-index is too high HOT 1
- Angular (10) SSR Support for GalleryOption ImageAutoPlay (loading infinity) HOT 2
- preview open : get index of image opened and cancel preview opening?
- only upload small images
- It's giving error in angular11+ as showing 'Renderer2' is declared here. HOT 1
- Class NgxGalleryModule is not an Angular module with Angular 12 HOT 1
- Show method does not change the image regularly!
- Warning: Css Minimizer Plugin: - ANGULAR 12 - warning: Unexpected "/"
- Error: BrowserModule has already been loaded. HOT 2
- This likely means that the library (@ngx-gallery) which declares NgxGalleryModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy
- The 'previewForceFullscreen' feature is experiencing issues on Safari.
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 ngx-gallery.