{"id":24757630,"url":"https://github.com/clarktozer/spfx-async-dropdown","last_synced_at":"2026-04-11T07:03:37.460Z","repository":{"id":36464059,"uuid":"225120981","full_name":"clarktozer/spfx-async-dropdown","owner":"clarktozer","description":"Asynchronous dropdown component for the SPFx property pane","archived":false,"fork":false,"pushed_at":"2022-12-04T22:44:10.000Z","size":3651,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-26T12:20:23.281Z","etag":null,"topics":["office365","react","sharepoint","sharepoint-framework","spfx"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clarktozer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-01T07:10:00.000Z","updated_at":"2020-09-28T05:26:50.000Z","dependencies_parsed_at":"2023-01-17T02:01:06.757Z","dependency_job_id":null,"html_url":"https://github.com/clarktozer/spfx-async-dropdown","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/clarktozer%2Fspfx-async-dropdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarktozer%2Fspfx-async-dropdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarktozer%2Fspfx-async-dropdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarktozer%2Fspfx-async-dropdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clarktozer","download_url":"https://codeload.github.com/clarktozer/spfx-async-dropdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245078182,"owners_count":20557281,"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":["office365","react","sharepoint","sharepoint-framework","spfx"],"created_at":"2025-01-28T15:34:03.707Z","updated_at":"2026-04-11T07:03:37.433Z","avatar_url":"https://github.com/clarktozer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## spfx-async-dropdown\n\n![CI Status](https://img.shields.io/github/workflow/status/clarktozer/spfx-async-dropdown/Build)\n[![npm version](https://img.shields.io/npm/v/spfx-async-dropdown.svg)](https://www.npmjs.com/package/spfx-async-dropdown)\n\nAsynchronous dropdown component for the SPFx property pane\n\n![Screenshot](./screenshot.gif)\n\n## Installation\n\n```bash\nnpm install spfx-async-dropdown\n```\n\n```bash\nimport { PropertyPaneAsyncDropdown } from \"spfx-async-dropdown\"\n```\n\n## Examples\n\n#### Get lists that are in the root web using [pnpjs](https://pnp.github.io/pnpjs/)\n\n```bash\nnew PropertyPaneAsyncDropdown(\"list\", {\n    label: \"List\",\n    onLoad: async () =\u003e {\n        const lists = await sp.site.rootWeb.lists.select(\"Id\", \"Title\").get();\n        return lists.map(list =\u003e {\n            return {\n                key: list.Id,\n                text: list.Title\n            }\n        })\n    },\n    onPropertyChange: (property: string, newValue: any) =\u003e {\n        const oldValue = get(this.properties, property);\n        update(this.properties, property, () =\u003e newValue);\n        this.onPropertyPaneFieldChanged(property, oldValue, newValue);\n        this.render();\n    },\n    selectedKey: this.properties.list,\n    required: true,\n    tooltip: {\n        content: \"Testing Tooltip\",\n        iconName: \"List\"\n    },\n    placeholder: \"Select an item...\",\n    description: \"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua\"\n})\n```\n\n## Props\n\n| Prop                              |                                                                     Type                                                                     |\n| :-------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------: |\n| label\u003cbr/\u003e_(required)_            |                                                                    string                                                                    |\n| onLoad\u003cbr/\u003e_(required)_           |                                                       () =\u003e Promise\u003cIDropdownOption[]\u003e                                                       |\n| onPropertyChange\u003cbr/\u003e_(required)_ |                                                  (property: string, newValue: any) =\u003e void                                                   |\n| selectedKey\u003cbr/\u003e_(required)_      |                                                               string or number                                                               |\n| disabled                          |                                                                   boolean                                                                    |\n| required                          |                                                                   boolean                                                                    |\n| tooltip                           | IToolTip ({ content: string, iconName: string}). iconName is a [Fabric icon](https://developer.microsoft.com/en-us/fabric#/styles/web/icons) |\n| placeholder                       |                                                                    string                                                                    |\n| description                       |                                                                    string                                                                    |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarktozer%2Fspfx-async-dropdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclarktozer%2Fspfx-async-dropdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarktozer%2Fspfx-async-dropdown/lists"}