on-internet
← Community

How to share the JavaScript files for the Blazor via Nuget packages and include them to consuming projects?

Stack Overflow ·

Let us get the question Blazor get div position / coordinates for example. According to both answers, currently it is possible only via JavaScript: function GetElementLocation(elementId){ var element = $("#"+elementId); var position = element.position() var width = element.outerWidth(); var height = element.outerHeight(); return { Width: width, Height: height, Top: position["top"], Left: position["left"], } } public class ElementLocation { public double Width { get; set; } public double Height { get; set; } public double Top { get; set; } public double Left { get; set; } } [Inject] protected I

Comments

Sign in or sign up to comment and upvote.

No comments yet.