{"id":26316806,"url":"https://github.com/dz8540/custom-select","last_synced_at":"2026-05-10T16:14:54.272Z","repository":{"id":57110287,"uuid":"398012415","full_name":"DZ8540/Custom-select","owner":"DZ8540","description":"DZ's custom select library component.","archived":false,"fork":false,"pushed_at":"2022-04-23T12:40:16.000Z","size":491,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T03:34:03.589Z","etag":null,"topics":["html","javascript","js","lib","library","ts","typescript"],"latest_commit_sha":null,"homepage":"https://dz8540.github.io/Custom-select/","language":"TypeScript","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/DZ8540.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}},"created_at":"2021-08-19T16:47:09.000Z","updated_at":"2021-12-17T16:53:47.000Z","dependencies_parsed_at":"2022-08-20T20:50:09.652Z","dependency_job_id":null,"html_url":"https://github.com/DZ8540/Custom-select","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DZ8540%2FCustom-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DZ8540%2FCustom-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DZ8540%2FCustom-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DZ8540%2FCustom-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DZ8540","download_url":"https://codeload.github.com/DZ8540/Custom-select/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243732225,"owners_count":20338839,"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":["html","javascript","js","lib","library","ts","typescript"],"created_at":"2025-03-15T13:16:51.224Z","updated_at":"2026-05-10T16:14:54.227Z","avatar_url":"https://github.com/DZ8540.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DZ Custom-select\nIn order to use, it is enough to find the element you need, and then pass it to the class.\n\n## Installation\n1. Via npm\n```cmd\nnpm i @dz8540/custom-select\n```\n1. Manually - all you need is in the \"Dist\" folder. If you need to use only multiple select, all you need is in the \"Multiple-select\" folder. If you need to use only select, all you need is in the \"Select\" folder.\n```html\n\u003clink href=\"/Your-path/customSelect.min.css\" rel=\"stylesheet\"\u003e\n\u003cscript src=\"/Your-path/CustomSelect.min.js\"\u003e\u003c/script\u003e\n```\n\n## Instruction:\n1. Don't remove all data attributes.\n2. Your value could has a data-checked attribute.\n3. Your values should be in the data-value attribute.\n4. Your values could has a data-disabled attribute.\n5. Component maintains data-name attribute, to you can set component name.\n\n## Example\n\n### HTML\n```html\n\u003cdiv class=\"Select\" tabindex=\"-1\" id=\"firstSelect\" data-name=\"First select\"\u003e\n  \u003cinput type=\"hidden\" data-id=\"dz-input\"\u003e\n\n  \u003cdiv class=\"Select__inputBlock\"\u003e\n    \u003cspan class=\"Select__input\" data-id=\"dz-inputText\"\u003e\u003c/span\u003e\n    \u003cspan class=\"Select__icon\"\u003e\u0026#9660;\u003c/span\u003e\n  \u003c/div\u003e\n\n  \u003cul class=\"Select__list\"\u003e\n    \u003cli class=\"Select__item\"\u003e\n      \u003cspan class=\"Select__text\" data-value=\"value1\"\u003eText 1\u003c/span\u003e\n    \u003c/li\u003e\n\n    \u003cli class=\"Select__item\"\u003e\n      \u003cspan class=\"Select__text\" data-value=\"value2\" data-disabled\u003eText 2\u003c/span\u003e\n    \u003c/li\u003e\n    \n    \u003cli class=\"Select__item\"\u003e\n      \u003cspan class=\"Select__text\" data-value=\"value3\" data-checked\u003eText 3\u003c/span\u003e\n    \u003c/li\u003e\n    \n    \u003cli class=\"Select__item\"\u003e\n      \u003cspan class=\"Select__text\" data-value=\"value4\"\u003eText 4\u003c/span\u003e\n    \u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n\n\u003c!-- If multiple --\u003e\n\u003cdiv class=\"Select\" tabindex=\"-1\" id=\"firstSelect\" data-multiple data-name=\"First select\"\u003e\n  \u003cinput type=\"hidden\" data-id=\"dz-input\"\u003e\n\n  \u003cdiv class=\"Select__inputBlock\"\u003e\n    \u003cspan class=\"Select__input\" data-id=\"dz-inputText\"\u003e\u003c/span\u003e\n    \u003cspan class=\"Select__icon\"\u003e\u0026#9660;\u003c/span\u003e\n  \u003c/div\u003e\n\n  \u003cul class=\"Select__list\"\u003e\n    \u003cli class=\"Select__item\"\u003e\n      \u003cspan class=\"Select__text\" data-value=\"value1\"\u003eText 1\u003c/span\u003e\n    \u003c/li\u003e\n\n    \u003cli class=\"Select__item\"\u003e\n      \u003cspan class=\"Select__text\" data-value=\"value2\" data-disabled\u003eText 2\u003c/span\u003e\n    \u003c/li\u003e\n    \n    \u003cli class=\"Select__item\"\u003e\n      \u003cspan class=\"Select__text\" data-value=\"value3\" data-checked\u003eText 3\u003c/span\u003e\n    \u003c/li\u003e\n    \n    \u003cli class=\"Select__item\"\u003e\n      \u003cspan class=\"Select__text\" data-value=\"value4\"\u003eText 4\u003c/span\u003e\n    \u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n```\n\n### JS\n```js\nlet el = document.querySelector(el);\nnew Select(el);\n// If multiple\nnew MultipleSelect(el);\n```\n\n## End\nThat's all! Enjoy this (☞ﾟヮﾟ)☞ ☜(ﾟヮﾟ☜)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdz8540%2Fcustom-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdz8540%2Fcustom-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdz8540%2Fcustom-select/lists"}