Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include blazorContextMenu.min.css and blazorContextMenu.min.js in a more Blazor like way. Reference the static files will not necessary #133

Open
wolfgangschneider opened this issue Jan 4, 2023 · 1 comment

Comments

@wolfgangschneider
Copy link

Is your feature request related to a problem? Please describe.
I'm always frustrated when I have add a link and script html tag to use a Blazor Component , In my opinion It should work in the most simple way . Ideal Install-Package add using , and than you can use it.

Describe the solution you'd like
Use Blazor CSS isolation. Use Blazor JavaScript Isolation e.g JS modules

var module = await jsRuntime.InvokeAsync<JSObjectReference>("import", "./_content/MyComponents/exampleJsInterop.js"); await module.InvokeAsync<string>("showPrompt", message);

B.R Wolfgang

@Napokue
Copy link

Napokue commented Feb 23, 2023

Totally agreed! I myself am building a component and I'd like to use this component, but it is a blocker for me, as I don't want my users to be including third party component js and css files. This has to be included in the component itself.

As it is a blocker for me, I'll take a look into this and hopefully have an implementation ready in a short period of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants