Configurable default value for fxLayoutGap & gdGap
See original GitHub issueFeature Request
What is the desired behavior?
Would be nice to implement configurable default gap for fxLayoutGap
& gdGap
directives.
import { FX_DEFAULT_GAP } from '@angular/flex-layout/flex';
import { GD_DEFAULT_GAP } from '@angular/flex-layout/grid';
@NgModule({
providers: [
{ provide: FX_DEFAULT_GAP, useValue: '24px' },
{ provide: GD_DEFAULT_GAP, useValue: '24px' }
]
})
What is the use-case or motivation for the desired behavior?
It makes templates nice and clean + allows you to keep gutter sizes in one place.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
angular/flex-layout - UNPKG
addStyles(value, {inline: this.inline});\n }\n}\n\nconst rowsCache: ... from '@angular/cdk/coercion';\n\nconst DEFAULT_VALUE = 'initial';\n\nexport ...
Read more >Angular Flex-Layout: Flexbox and Grid Layout ... - InDepth.Dev
Create a new Flexbox container and setting its direction; fxLayoutGap=”32px” —Corresponding to margin-bottom: 32px for each child except the last. Configure ...
Read more >Its always better to hack around than...
Webpack configuration for each entry to override Manifest fileName ... The way we pass any random value to a function with the help...
Read more >Angular UI/Material Design Flashcards by uday A - Brainscape
After that is configured, you can use the Angular Layout attributes in your ... Note: numeric values not explicitly annotated as px, vw,...
Read more >fxLayout API in Angular flex layout
... any value to the fxLayout. The layout will be row. fxLayout default value is row. ... I have added fxLayoutGap to give...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Now that we’ve introduced
StyleBuilders
, it’s pretty seamless to override default styles. An example for how to do this has been added to the Wiki here. We won’t be providing tokens for each directive because that includes too much clutter in the library, whereas adding aStyleBuilder
ad hoc is pretty straightforward.This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.