{"id":19255368,"url":"https://github.com/codedcontainer/blazorselectlistcomponents","last_synced_at":"2026-03-01T03:02:44.524Z","repository":{"id":200577194,"uuid":"705838072","full_name":"codedcontainer/BlazorSelectListComponents","owner":"codedcontainer","description":"Blazor list components for handlling internal or JSON data","archived":false,"fork":false,"pushed_at":"2023-10-16T19:47:31.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T17:29:38.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/codedcontainer.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":"2023-10-16T19:37:09.000Z","updated_at":"2023-10-16T19:45:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"505c0ffc-8577-4a05-870d-1fc084701f93","html_url":"https://github.com/codedcontainer/BlazorSelectListComponents","commit_stats":null,"previous_names":["codedcontainer/blazorselectlistcomponents"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codedcontainer/BlazorSelectListComponents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedcontainer%2FBlazorSelectListComponents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedcontainer%2FBlazorSelectListComponents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedcontainer%2FBlazorSelectListComponents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedcontainer%2FBlazorSelectListComponents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codedcontainer","download_url":"https://codeload.github.com/codedcontainer/BlazorSelectListComponents/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedcontainer%2FBlazorSelectListComponents/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29959284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"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":[],"created_at":"2024-11-09T18:40:55.704Z","updated_at":"2026-03-01T03:02:44.507Z","avatar_url":"https://github.com/codedcontainer.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blazor Select List Components\n## Select List Component\n\n### Description\nA Blazor select list component styled using Bootstrap 5. This component uses reflection and a generic list of objects to create a `\u003cselect\u003e` element and nested `\u003coption\u003e` elements.\n\n### How To Run ###\n* Make sure to have .net 7 framework runtime installed on your machine\n* Make sure to have dotnet cli installed\n* Run `dotnet run` from inside of the BlazorSelectList directory\n\n### Example\n```\n \u003cSelectListCustom \n    Data=People\n    TextKey=\"Name\"\n    ValueKey=\"Id\"\n    DefaultText=\"-- Select a Person --\"\n    DefaultValue=\"-1\"\n    SelectedOptionByValue=\"2\"\n    Name=\"People\"\u003e\n\u003c/SelectListCustom\u003e\n```\n\n### Attributes\n\n\n| Attribute | Desc | Required?|\n|-----------|------|----------|\n| Data      | List of generic objects. Example: `var People = List\u003cPerson\u003e`. | Y |\n| ValueKey  | Object property key that assigns each option's value attribute. Example: `\u003coption value={ValueKey.Value}\u003e...` | Y\n| TextKey | Object property key that assigns each option's text value. Example: `\u003coption ...\u003e{TextKey.Value}\u003e...`. | Y\n| DefaultText | Prepends a new option element and assigns the options text value. | N\n| DefaultValue | Sets the prepended option element's value. | N\n| SelectedOptionByValue | Sets an option element to 'selected' by a matching option value attribute. | N\n\n## Select List JSON Component\n\n### Description\nThis component works similarly to the select list component but handles a serialized JSON string instead of a list of generic C# objects.Deserialization the JSON string uses C# JSON DOM and `JsonNode`.\n\n### Example\n```\n\u003cSelectListJson \n    JsonData=@PeopleJson \n    TextKey=\"Name\" \n    ValueKey=\"Id\" \n    DefaultText=\"-- Select a Person --\" \n    DefaultValue=\"-1\"\n    SelectedOptionByValue=\"2\"\u003e\n\u003c/SelectListJson\u003e\n```\n\n### Attributes\n\n\n| Attribute | Desc | Required?|\n|-----------|------|----------|\n| Data      | Serialized JSON array. **Must be a single-dimensional array of objects.** Example: `\"[{Id:1, Name: \"Bob Smit},...]\"` | Y |\n| ValueKey  | Object property key that assigns each options value attributes value. Example: `\u003coption value={ValueKey.Value}\u003e...`. The value must not be `undefined` or `null`. | Y\n| TextKey | Object property key that assigns each option's text value. Example: `\u003coption ...\u003e{TextKey.Value}\u003e...`. The value must not be `undefined` or `null`. | Y\n| DefaultText | Prepends a new option element and assigns the option's text value | N\n| DefaultValue | Sets the prepended option element's value. | N\n| SelectedOptionByValue | Sets an option element to 'selected' by a matching option value attribute | N\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedcontainer%2Fblazorselectlistcomponents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedcontainer%2Fblazorselectlistcomponents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedcontainer%2Fblazorselectlistcomponents/lists"}