{"id":30623388,"url":"https://github.com/chfern/net-core-autolink-dropdown","last_synced_at":"2026-06-29T11:31:32.139Z","repository":{"id":106048553,"uuid":"211250175","full_name":"chfern/net-core-autolink-dropdown","owner":"chfern","description":"⛓NuGet Package to aid linking parent dropdowns to child dropdowns","archived":false,"fork":false,"pushed_at":"2019-10-01T08:14:36.000Z","size":340,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-26T17:54:07.219Z","etag":null,"topics":["asp-net-core","nuget-package"],"latest_commit_sha":null,"homepage":"","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/chfern.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}},"created_at":"2019-09-27T06:23:29.000Z","updated_at":"2019-10-01T14:50:20.000Z","dependencies_parsed_at":"2023-11-07T00:47:12.350Z","dependency_job_id":null,"html_url":"https://github.com/chfern/net-core-autolink-dropdown","commit_stats":null,"previous_names":["chfern/net-core-autolink-dropdown","fernandochristyanto/net-core-autolink-dropdown"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chfern/net-core-autolink-dropdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfern%2Fnet-core-autolink-dropdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfern%2Fnet-core-autolink-dropdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfern%2Fnet-core-autolink-dropdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfern%2Fnet-core-autolink-dropdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chfern","download_url":"https://codeload.github.com/chfern/net-core-autolink-dropdown/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfern%2Fnet-core-autolink-dropdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272873553,"owners_count":25007566,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","nuget-package"],"created_at":"2025-08-30T16:14:23.983Z","updated_at":"2026-06-29T11:31:32.131Z","avatar_url":"https://github.com/chfern.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NetCoreAutoLinkDropdown\n## Description\nNetCoreAutoLinkDropdown is a package to aid developers in linking several connected dropdowns (parent dropdown with child dropdowns)  \n![Parent Dropdown Triggers Child](_assets/changingddl.gif)  \n\n## Installation (NuGet)\nNetCoreAutoLinkDropdown is a NuGet package and is available to install via nuget.\n```\nPM\u003e Install-Package NetCoreAutoLinkDropdown\n```\n\n## Setup\n- First off, install the package in your application:\n- Open Startup.cs, add:\n  \n  ```csharp\n  // ConfigureServices\n  services.AddTransient\u003cIHttpContextAccessor, HttpContextAccessor\u003e();\n\n  var assembly = typeof(NetCoreAutoLinkDropdown.DropdownProviderControllers.AutoLinkDropdownProviderController).GetTypeInfo().Assembly;\n  services.AddMvc().AddApplicationPart(assembly);\n  ```\n\n  ```csharp\n  // Configure\n  app.UseMvc(routes =\u003e\n  {\n\t  routes.MapRoute(\n\t  name: \"default\",\n\t  template: \"{controller=Home}/{action=Index}/{id?}\");\n  });\n  ```\n  \n## Usage\nThis package consists of\n\nTwo main interfaces:\n- ```DropdownItem```  \n  Your model that will be rendered as dropdown should implement this interface\n- ```SubDropdownItemProviderFactory```  \n  Implement this in your model if your model also acts as a provider for another dropdown. (For parent dropdowns) \n\nHelper class:\n- ```Dropdown.From(IEnumerable\u003cDropdownItem\u003e)```  \n  Converts list of dropdownItems into list of SelectListItems\n\nTag Helpers:\n- ```html\n  \u003cauto-dropdown data=\"IEnumerable\u003cDropdownItem\u003e\" id=\"dropdown-id\" asp-for=\"dropdown-value\"\u003e\u003c/auto-dropdown\u003e\n  ```  \n  Use this tag helper to render dropdown\n- ```html\n  \u003cautolink-dropdown provider=\"parent-dropdown-id\" provide-for=\"subdropdown-id\" sub-dropdown-key=\"provider-data-key\"\u003e\u003c/autolink-dropdown\u003e\n  ```   \n  Use this tag helper to link parent dropdown to child dropdown(s). To include multiple child, you can use ';' as delimiter in *provider-for*\n\n\n## Sample Code\nHere's a very simple app to demonstrate the usage of this library  \nhttps://github.com/manizer/NetCoreAutoDropdownSample","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchfern%2Fnet-core-autolink-dropdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchfern%2Fnet-core-autolink-dropdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchfern%2Fnet-core-autolink-dropdown/lists"}