question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configurable default value for fxLayoutGap & gdGap

See original GitHub issue

Feature 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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
CaerusKarucommented, Dec 7, 2018

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 a StyleBuilder ad hoc is pretty straightforward.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 5, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found