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.

Global setup options on the service registration

See original GitHub issue

Is your feature request related to a problem? Please describe. Yes, I need to setup globally HeightAuto = false since this breaks pages using flex and height 100%.

This is my case as specified in sweet alert 2

image

Describe the solution you’d like Global options setup in the services.AddSweetAlert2();

Describe alternatives you’ve considered What I have done for now is refactor the methods using FireAsync.

Used the overload method with the sweet alert options and force HeightAuto = false.

Additional context N/A

It’s seems to be possible using Swal.mixin({ ...options })

https://sweetalert2.github.io/#configuration

I searched the source code and there is no overload here

https://github.com/Basaingeal/Razor.SweetAlert2/blob/develop/ExtensionMethods.cs

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Basaingealcommented, Jun 16, 2021

This feature has been added in the v5.0.0 release. (https://github.com/Basaingeal/Razor.SweetAlert2/pull/1446) (https://github.com/Basaingeal/Razor.SweetAlert2/pull/1437)

See the README for more details.

0reactions
arivera12commented, Jun 21, 2021

It worked! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring a Global Default Private Registry
There are two main ways to set up a private registry in Rancher: Set up a global default registry through the Settings tab...
Read more >
Global App Configuration Service
The Global App Configuration Service is designed for administrators and Citrix Workspace app client-side developers. A workspace admin calls the Global App ...
Read more >
Global Services Configuration
The following settings appear on the Global Attributes tab: Audit logging. Enable audit logging in AM. Default value: true. amster attribute: auditEnabled.
Read more >
Create global conditions - Configuration Manager
In the Configuration Manager console, choose Software Library > Application Management > Global Conditions. On the Home tab, in the Create ...
Read more >
Global Data Services Concepts and Administration Guide
The Global Data Services framework consists of at least one global service manager, a Global Data Services catalog, and the GDS configuration databases....
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