{"id":37022973,"url":"https://github.com/pushkar8723/paper-dropdown","last_synced_at":"2026-01-14T02:45:12.654Z","repository":{"id":57741795,"uuid":"98579065","full_name":"pushkar8723/paper-dropdown","owner":"pushkar8723","description":"A wrapper for paper-dropdown-menu to enable various features like multi-select, search / filter of items, key value pair and 2-way binding on value.","archived":false,"fork":false,"pushed_at":"2019-09-25T20:08:19.000Z","size":471,"stargazers_count":16,"open_issues_count":3,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T03:53:44.271Z","etag":null,"topics":["multi-select","paper-dropdown","polymer"],"latest_commit_sha":null,"homepage":"https://paper-dropdown.netlify.com/#/elements/paper-dropdown","language":"JavaScript","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/pushkar8723.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":"2017-07-27T20:54:56.000Z","updated_at":"2020-09-01T15:18:52.000Z","dependencies_parsed_at":"2022-09-09T13:21:38.327Z","dependency_job_id":null,"html_url":"https://github.com/pushkar8723/paper-dropdown","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/pushkar8723/paper-dropdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushkar8723%2Fpaper-dropdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushkar8723%2Fpaper-dropdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushkar8723%2Fpaper-dropdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushkar8723%2Fpaper-dropdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pushkar8723","download_url":"https://codeload.github.com/pushkar8723/paper-dropdown/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushkar8723%2Fpaper-dropdown/sbom","scorecard":{"id":750324,"data":{"date":"2025-08-11","repo":{"name":"github.com/pushkar8723/paper-dropdown","commit":"d0aa3900170065258c4effa66036b6303ecceb7d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 3/21 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"125 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-pp7h-53gx-mx7r","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-hr2v-3952-633q","Warn: Project is vulnerable to: GHSA-wm7h-9275-46v2","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m","Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-pc5p-h8pf-mvwp","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-7h8x-wmq2-7mff","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-xf5p-87ch-gxw2","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-pc58-wgmc-hfjr","Warn: Project is vulnerable to: GHSA-vvv8-xw5f-3f88","Warn: Project is vulnerable to: GHSA-44fp-w29j-9vj5","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-4cpg-3vgw-4877","Warn: Project is vulnerable to: GHSA-wvhm-4hhf-97x9","Warn: Project is vulnerable to: GHSA-h4hr-7fg3-h35w","Warn: Project is vulnerable to: GHSA-gj77-59wh-66hg","Warn: Project is vulnerable to: GHSA-hqhp-5p83-hx96","Warn: Project is vulnerable to: GHSA-3949-f494-cm99","Warn: Project is vulnerable to: GHSA-x7hr-w5r2-h6wg","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-x3m3-4wpv-5vgc","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-fxwf-4rqh-v8g3","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-xfhh-g9f5-x4m4","Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v","Warn: Project is vulnerable to: GHSA-29xr-v42j-r956","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-3329-pjwv-fjpg","Warn: Project is vulnerable to: GHSA-p6j9-7xhc-rhwp","Warn: Project is vulnerable to: GHSA-89gv-h8wf-cg8r","Warn: Project is vulnerable to: GHSA-gcv8-gh4r-25x6","Warn: Project is vulnerable to: GHSA-gmv4-r438-p67f","Warn: Project is vulnerable to: GHSA-8h2f-7jc4-7m3m","Warn: Project is vulnerable to: GHSA-3vjf-82ff-p4r3","Warn: Project is vulnerable to: GHSA-g694-m8vq-gv9h","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-h6q6-9hqw-rwfv","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-72mh-269x-7mh5","Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T20:08:20.340Z","repository_id":57741795,"created_at":"2025-08-22T20:08:20.340Z","updated_at":"2025-08-22T20:08:20.340Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["multi-select","paper-dropdown","polymer"],"created_at":"2026-01-14T02:45:12.169Z","updated_at":"2026-01-14T02:45:12.641Z","avatar_url":"https://github.com/pushkar8723.png","language":"JavaScript","readme":"[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/@pushkar8723/paper-dropdown)\n[![npm version](https://badge.fury.io/js/%40pushkar8723%2Fpaper-dropdown.svg)](https://badge.fury.io/js/%40pushkar8723%2Fpaper-dropdown)\n[![Build Status](https://travis-ci.org/pushkar8723/paper-dropdown.svg?branch=master)](https://travis-ci.org/pushkar8723/paper-dropdown)\n\n## \u0026lt;paper-dropdown\u0026gt;\n\n`paper-dropdown` is a wrapper for `paper-dropdown-menu` to enable various features like multi-select, search / filter of\nitems, key value pair and 2-way binding on value.\n\n[Documentation](https://paper-dropdown.netlify.com/#/elements/paper-dropdown)\n[Demo](https://paper-dropdown.netlify.com/#/elements/paper-dropdown/demos/demo/index.html)\n\n\n## Usage\n\n### Installation\n```\nnpm install --save @pushkar8723/paper-dropdown\n```\n\n### In an html file\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript type=\"module\"\u003e\n      import '@pushkar8723/paper-dropdown/paper-dropdown.js';\n      import '@polymer/paper-item/paper-item.js';\n    \u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cpaper-dropdown label=\"Fruit\"\u003e\n        \u003cpaper-item\u003eApple\u003c/paper-item\u003e\n        \u003cpaper-item\u003eBanana\u003c/paper-item\u003e\n        \u003cpaper-item\u003eMango\u003c/paper-item\u003e\n        \u003cpaper-item\u003eOrange\u003c/paper-item\u003e\n        \u003cpaper-item\u003eTomato\u003c/paper-item\u003e\n    \u003c/paper-dropdown\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n### In a Polymer 3 element\n```js\nimport {PolymerElement, html} from '@polymer/polymer';\nimport '@pushkar8723/paper-dropdown/paper-dropdown.js';\nimport '@polymer/paper-item/paper-item.js';\n\nclass SampleElement extends PolymerElement {\n  static get template() {\n    return html`\n      \u003cpaper-dropdown label=\"Fruit\"\u003e\n        \u003cpaper-item\u003eApple\u003c/paper-item\u003e\n        \u003cpaper-item\u003eBanana\u003c/paper-item\u003e\n        \u003cpaper-item\u003eMango\u003c/paper-item\u003e\n        \u003cpaper-item\u003eOrange\u003c/paper-item\u003e\n        \u003cpaper-item\u003eTomato\u003c/paper-item\u003e\n      \u003c/paper-dropdown-menu\u003e\n    `;\n  }\n}\ncustomElements.define('sample-element', SampleElement);\n```\n\n## Use Cases\n\nValues can be bound using `value` attribute.\n\n**Example**\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n    \u003ctemplate\u003e\n        \u003clink rel=\"import\" href=\"paper-dropdown.html\"\u003e\n        \u003clink rel=\"import\" href=\"../paper-item/paper-item.html\"\u003e\n        \u003clink rel=\"import\" href=\"../iron-demo-helpers/demo-pages-shared-styles.html\"\u003e\n        \u003cstyle is=\"custom-style\" include=\"demo-pages-shared-styles\"\u003e\n            paper-dropdown {\n                height: 300px;\n            }\n        \u003c/style\u003e\n        \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n    \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n```html\n\u003cpaper-dropdown label=\"Fruit\" value=\"{{value}}\"\u003e\n    \u003cpaper-item\u003eApple\u003c/paper-item\u003e\n    \u003cpaper-item\u003eBanana\u003c/paper-item\u003e\n    \u003cpaper-item\u003eMango\u003c/paper-item\u003e\n    \u003cpaper-item\u003eOrange\u003c/paper-item\u003e\n    \u003cpaper-item\u003eTomato\u003c/paper-item\u003e\n\u003c/paper-dropdown\u003e\n```\n\nEach item can have a key-value pair where key is what stored in the model but\nlabel is what user sees. This can be done using `value` attribute for `paper-item`\n\n**Example**\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n    \u003ctemplate\u003e\n        \u003clink rel=\"import\" href=\"paper-dropdown.html\"\u003e\n        \u003clink rel=\"import\" href=\"../paper-item/paper-item.html\"\u003e\n        \u003clink rel=\"import\" href=\"../iron-demo-helpers/demo-pages-shared-styles.html\"\u003e\n        \u003cstyle is=\"custom-style\" include=\"demo-pages-shared-styles\"\u003e\n            paper-dropdown {\n                height: 300px;\n            }\n        \u003c/style\u003e\n        \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n    \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n```html\n\u003cpaper-dropdown label=\"Fruit\" value=\"{{value}}\"\u003e\n    \u003cpaper-item value=\"apple\"\u003eApple\u003c/paper-item\u003e\n    \u003cpaper-item value=\"banana\"\u003eBanana\u003c/paper-item\u003e\n    \u003cpaper-item value=\"mango\"\u003eMango\u003c/paper-item\u003e\n    \u003cpaper-item value=\"orange\"\u003eOrange\u003c/paper-item\u003e\n    \u003cpaper-item value=\"tomato\"\u003eTomato\u003c/paper-item\u003e\n\u003c/paper-dropdown\u003e\n```\n\nIt also has an optional parameter named `searchable`, which when set to true\nwill add a text field at the start of the dropdown which users can use to filter\nout the items in the dropdown.\n\n**Example**\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n    \u003ctemplate\u003e\n        \u003clink rel=\"import\" href=\"paper-dropdown.html\"\u003e\n        \u003clink rel=\"import\" href=\"../paper-item/paper-item.html\"\u003e\n        \u003clink rel=\"import\" href=\"../iron-demo-helpers/demo-pages-shared-styles.html\"\u003e\n        \u003cstyle is=\"custom-style\" include=\"demo-pages-shared-styles\"\u003e\n            paper-dropdown {\n                height: 300px;\n            }\n        \u003c/style\u003e\n        \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n    \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n```html\n\u003cpaper-dropdown label=\"Fruit\" value=\"{{value}}\" searchable=\"true\"\u003e\n    \u003cpaper-item value=\"apple\"\u003eApple\u003c/paper-item\u003e\n    \u003cpaper-item value=\"banana\"\u003eBanana\u003c/paper-item\u003e\n    \u003cpaper-item value=\"mango\"\u003eMango\u003c/paper-item\u003e\n    \u003cpaper-item value=\"orange\"\u003eOrange\u003c/paper-item\u003e\n    \u003cpaper-item value=\"tomato\"\u003eTomato\u003c/paper-item\u003e\n\u003c/paper-dropdown\u003e\n```\n\nFor multi-select, set `mutli` parameter to true.  In this case however, paper-item's `value` attribute must be set.\n\n**Example**\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n    \u003ctemplate\u003e\n        \u003clink rel=\"import\" href=\"paper-dropdown.html\"\u003e\n        \u003clink rel=\"import\" href=\"../paper-item/paper-item.html\"\u003e\n        \u003clink rel=\"import\" href=\"../iron-demo-helpers/demo-pages-shared-styles.html\"\u003e\n        \u003cstyle is=\"custom-style\" include=\"demo-pages-shared-styles\"\u003e\n            paper-dropdown {\n                height: 300px;\n            }\n        \u003c/style\u003e\n        \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n    \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n```html\n\u003cpaper-dropdown label=\"Fruit\" value=\"{{value}}\" multi=\"true\" searchable=\"true\"\u003e\n    \u003cpaper-item value=\"apple\"\u003eApple\u003c/paper-item\u003e\n    \u003cpaper-item value=\"banana\"\u003eBanana\u003c/paper-item\u003e\n    \u003cpaper-item value=\"mango\"\u003eMango\u003c/paper-item\u003e\n    \u003cpaper-item value=\"orange\"\u003eOrange\u003c/paper-item\u003e\n    \u003cpaper-item value=\"tomato\"\u003eTomato\u003c/paper-item\u003e\n\u003c/paper-dropdown\u003e\n```\n\nA very common usecase for dropdown is where items are dynamic. Following example shows how to use paper-dropdown with template repeat.\n\n**Example**\n\u003c!--\n```\n\u003ccustom-element-demo\u003e\n    \u003ctemplate\u003e\n        \u003clink rel=\"import\" href=\"paper-dropdown.html\"\u003e\n        \u003clink rel=\"import\" href=\"../paper-item/paper-item.html\"\u003e\n        \u003clink rel=\"import\" href=\"../iron-demo-helpers/demo-pages-shared-styles.html\"\u003e\n        \u003cstyle is=\"custom-style\" include=\"demo-pages-shared-styles\"\u003e\n            paper-dropdown {\n                height: 300px;\n            }\n        \u003c/style\u003e\n        \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n    \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e \n```html\n\u003cdom-bind\u003e\n    \u003ctemplate\u003e\n        \u003cpaper-dropdown label=\"Select an item\" value=\"{{value}}\" searchable multi\u003e\n            \u003ctemplate is=\"dom-repeat\" items=\"{{items}}\"\u003e\n      \t        \u003cpaper-item value$=\"{{item.key}}\"\u003e{{item.value}}\u003c/paper-item\u003e\n            \u003c/template\u003e\n        \u003c/paper-dropdown\u003e\u003cbr/\u003e\n        \u003cstrong\u003eSeleted Item:\u003c/strong\u003e {{value}}\n    \u003c/template\u003e\n    \u003cscript\u003e\n        var domBind = document.querySelector('dom-bind');\n        domBind.items = [\n            {key: 'item1', value: 'First Item'},\n            {key: 'item2', value: 'Second Item'},\n            {key: 'item3', value: 'Third Item'},\n            {key: 'item4', value: 'Fourth Item'},\n            {key: 'item5', value: 'Fifth Item'},\n        ];\n    \u003c/script\u003e\n\u003c/dom-bind\u003e\n```\n\n### Styling\n\nSince `paper-dropdown` is wrapper around `paper-dropdown-menu`, you can use any of the `paper-dropdown-menu`, `paper-input-container` and `paper-menu-button` style mixins and custom properties to style the internal input and menu button respectively.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushkar8723%2Fpaper-dropdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushkar8723%2Fpaper-dropdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushkar8723%2Fpaper-dropdown/lists"}