{"id":13545899,"url":"https://github.com/justin-lyon/lwc-metadata-picker","last_synced_at":"2025-04-02T17:32:19.055Z","repository":{"id":121652839,"uuid":"215079782","full_name":"justin-lyon/lwc-metadata-picker","owner":"justin-lyon","description":"Filter and search Custom Metadata with LWC","archived":false,"fork":false,"pushed_at":"2019-10-14T19:19:21.000Z","size":110,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-03T14:34:44.429Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/justin-lyon.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}},"created_at":"2019-10-14T15:31:11.000Z","updated_at":"2023-10-02T09:13:06.000Z","dependencies_parsed_at":"2024-01-16T17:37:17.396Z","dependency_job_id":"47446bfa-1ae4-4b7c-9fef-20b515e53a45","html_url":"https://github.com/justin-lyon/lwc-metadata-picker","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/justin-lyon%2Flwc-metadata-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-lyon%2Flwc-metadata-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-lyon%2Flwc-metadata-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-lyon%2Flwc-metadata-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justin-lyon","download_url":"https://codeload.github.com/justin-lyon/lwc-metadata-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246860198,"owners_count":20845629,"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":[],"created_at":"2024-08-01T12:00:26.152Z","updated_at":"2025-04-02T17:32:18.723Z","avatar_url":"https://github.com/justin-lyon.png","language":"JavaScript","funding_links":[],"categories":["On Platform Community Repos"],"sub_categories":[],"readme":"# lwc-metadata-picker\n\nA Custom Metadata Lookup field that allows to filter by a picklist.\n\n## Demo\n\n![demo gif](lwc-metadata-picker.gif)\n\n## Usage\n\n```html\n\u003c!-- Parent.html --\u003e\n\u003clightning-card title=\"Custom Metadata Picker\"\u003e\n  \u003cdiv class=\"slds-p-horizontal_medium\"\u003e\n    \u003cfieldset class=\"slds-box\" \u003e\n      \u003clegend class=\"slds-p-horizontal_small slds-text-color_weak\" \u003eDragons\u003c/legend\u003e\n\n      \u003cc-metadata-finder\n        combo-label=\"Size Filter\"\n        picker-label=\"Search\"\n        icon-name=\"utility:setup\"\n        placeholder=\"Search Dragons...\"\n        mdt-name=\"Dragon__mdt\"\n        title=\"MasterLabel\"\n        subtitle=\"Size__c\"\n        filter-by=\"Size__c\"\n        onselected={handleMdtSelected}\u003e\u003c/c-metadata-finder\u003e\n    \u003c/fieldset\u003e\n  \u003c/div\u003e\n\n  \u003cdiv slot=\"footer\"\u003e\n    Custom Metadata Id: {mdtId}\n  \u003c/div\u003e\n\u003c/lightning-card\u003e\n```\n\n```javascript\n// Parent.js\nimport { LightningElement, track } from 'lwc'\n\nexport default class WipContainer extends LightningElement {\n  @track mdtId\n\n  handleMdtSelected (event) {\n    this.mdtId = event.detail\n  }\n}\n```\n\n## API Documentation\n\n**Name**|**Type**|**Description**\n-----|-----|-----\ncombo-label|@api prop|Label for the Filter Combobox\npicker-label|@api prop|Label for the Search Input\nicon-name|@api prop|Icon for records and results\nplaceholder|@api prop|Placeholder text for the Search Input\nmdt-name|@api prop|Custom Metadata API Name\ntitle|@api prop|Custom Metadata Field displayed in Search Results Title\nsubtitle|@api prop|Custom Metadata Field display in Search Results Subtitle\nfilter-by|@api prop|Custom Metadata Field to Filter by, defaults to subtitle\nonselected|event|Fired when a Metadata Record is selected. event.detail is the metadata record id.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustin-lyon%2Flwc-metadata-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustin-lyon%2Flwc-metadata-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustin-lyon%2Flwc-metadata-picker/lists"}