{"id":13341556,"url":"https://github.com/skordesign/Blazor.GuidePopup","last_synced_at":"2025-03-11T22:31:07.157Z","repository":{"id":114275323,"uuid":"180170172","full_name":"skordesign/Blazor.GuidePopup","owner":"skordesign","description":"Guidelines popup for Blazor","archived":false,"fork":false,"pushed_at":"2020-06-09T08:21:34.000Z","size":704,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-24T10:06:28.922Z","etag":null,"topics":["asp-net-core","blazor","csharp","dotnet","microsoft","netcore","razor","web-assembly","webassembly"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skordesign.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-08T14:44:43.000Z","updated_at":"2020-06-09T08:21:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"1dfa4975-8076-4c90-bedf-ea2128769d7c","html_url":"https://github.com/skordesign/Blazor.GuidePopup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skordesign%2FBlazor.GuidePopup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skordesign%2FBlazor.GuidePopup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skordesign%2FBlazor.GuidePopup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skordesign%2FBlazor.GuidePopup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skordesign","download_url":"https://codeload.github.com/skordesign/Blazor.GuidePopup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243125106,"owners_count":20240263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp-net-core","blazor","csharp","dotnet","microsoft","netcore","razor","web-assembly","webassembly"],"created_at":"2024-07-29T19:25:29.305Z","updated_at":"2025-03-11T22:31:07.152Z","avatar_url":"https://github.com/skordesign.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polarizelab.Blazor.GuidePopup\nGuidelines popup for Blazor\n### Usage\n#### 1.Installation\nNuget: [Blazor.GuidePopup](https://www.nuget.org/packages/Polarizelab.Blazor.GuidePopup)\n#### 2.Add service\n```csharp\nbuilder.Services.AddGuider();\n// also use with options\n// builder.Services.AddGuider(options =\u003e {\n// options.PopupClassName = \"your-class\";\n///...\n//})\n```\nand in index.html\n```html\n    ...\n    \u003clink href=\"_content/Polarizelab.Blazor.GuidePopup/styles.css\" rel=\"stylesheet\"/\u003e\n    ...\n\n    ...\n    \u003cscript src=\"_content/Polarizelab.Blazor.GuidePopup/Guider.js\"\u003e\u003c/script\u003e\n    ...\n```\n\n#### 3.Inject service and use it\n```csharp\n@page \"/\"\n@inject Polarizelab.Blazor.GuidePopup.IGuider Guider\n\u003cdiv ref=\"showPopupNearMe\"\u003e\u003c/div\u003e\n@functions{\n    ElementReference showPopupNearMe;\n    protected override void OnInitialized()\n    {\n        base.OnInitialized();\n\n        Guider.Show(\"elementId\", \"Content\", GuidePosition.Right);\n        // you can use it with ElementRef or X,Y\n        // Guider.Show(showPopupNearMe, \"Content\", GuidePosition.Bottom);\n        // Guider.Show(200, 400, \"Content\", GuidePosition.TopLeft);\n        Guider.OnClosed += OnClosed;\n    }\n    private void OnClosed(object sender, System.EventArgs args)\n    {\n        Console.WriteLine(\"Closed\");\n    }\n}\n```\n#### Use GuideLines\n```csharp\n@inject Polarizelab.Blazor.GuidePopup.IGuider Guider\n\u003cdiv ref=\"showPopupNearMe\"\u003e\u003c/div\u003e\n@code{\n    ElementReference showPopupNearMe;\n    private void ShowGuidline(){\n        Guider.Make(\"elementId\", \"Content\", GuidePosition.Right)\n              .Make(showPopupNearMe, \"Content\", GuidePosition.Bottom)\n              .Make(300, 300, \"Test 3\")\n              .Start();\n\t}\n}\n```\n\n##### Note: The Guider will create new element and add it to inside of `body` tag, when close it will removed. If you have any idea for this package,feel free create new issue on this repository.\n#### Demo\n![Demo](Demo.gif)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskordesign%2FBlazor.GuidePopup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskordesign%2FBlazor.GuidePopup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskordesign%2FBlazor.GuidePopup/lists"}