{"id":17880717,"url":"https://github.com/gibbok/dijit-select-optgroup","last_synced_at":"2025-09-06T19:37:55.011Z","repository":{"id":58233143,"uuid":"93919791","full_name":"gibbok/dijit-select-optgroup","owner":"gibbok","description":"SelectOptgroup is a styleable, searchable drop down select box for Dojo which includes grouping of options (similar to html \u003cselect\u003e element with \u003coptgroup\u003e).","archived":false,"fork":false,"pushed_at":"2022-07-03T14:57:35.000Z","size":57,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-26T00:03:05.113Z","etag":null,"topics":["dijit","dojo","dojo-widgets","javascript"],"latest_commit_sha":null,"homepage":"https://gibbok.github.io/dijit-select-optgroup/","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/gibbok.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-06-10T06:14:28.000Z","updated_at":"2023-03-08T23:24:41.000Z","dependencies_parsed_at":"2022-08-30T22:30:27.290Z","dependency_job_id":null,"html_url":"https://github.com/gibbok/dijit-select-optgroup","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gibbok/dijit-select-optgroup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbok%2Fdijit-select-optgroup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbok%2Fdijit-select-optgroup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbok%2Fdijit-select-optgroup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbok%2Fdijit-select-optgroup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gibbok","download_url":"https://codeload.github.com/gibbok/dijit-select-optgroup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gibbok%2Fdijit-select-optgroup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273954881,"owners_count":25197575,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"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":["dijit","dojo","dojo-widgets","javascript"],"created_at":"2024-10-28T12:27:51.587Z","updated_at":"2025-09-06T19:37:54.970Z","avatar_url":"https://github.com/gibbok.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SelectOptgroup\nSelectOptgroup is a styleable, searchable drop down select box for [Dojo Toolkit](https://dojotoolkit.org/) which includes grouping of options (similar to html `\u003cselect\u003e` element with `\u003coptgroup\u003e`).\n\nSelectOptgroup extends [dijit.form.Select](http://dojotoolkit.org/reference-guide/1.10/dijit/form/Select.html) maintaining its API and core functionalities.\n\n[Try live example](https://gibbok.github.io/dijit-select-optgroup).\n\n---\n\n### Great! So how do I use it?\n- For npm users, add this dependecy in your package.json: `\"dependencies\": { \"dijit-select-optgroup\": \"^1.0.0\" }` and run `npm install`.\n- For Bower users, add this dependecy in your bower.json: `\"dependencies\": { \"dijit-select-optgroup\": \"^1.0.0\" }` and run `bower install`.\n\n### How do I run the example?\n- First install all dependencies using: `npm install`.\n- Now run your local server: `gulp connect`.\n- Open the example: `gulp example`.\n\n---\n\n### API\nSelectOptgroup uses the same API for [dijit.form.Select](http://dojotoolkit.org/api/?qs=1.10/dijit/form/Select), the only difference is the `optgroup` property, which can be optionally passed in the objects for property `options` to differentiate the item in the list.\n\n#### Example\n```javascript\nvar instance = new SelectOptgroup({\n    options: [\n        {\n            label: 'Optgroup item',\n            value: '',\n            optgroup: true // mark menu item as optgroup\n        },\n        {\n            label: 'Option item',\n            value: 'option '// mark menu item as option\n        },\n        {\n            label: '', // empty strings mark menu item as separator\n            value: ''\n        },\n        {\n            label: '\u003cdiv class=\"SelectOptgroup__nested\"\u003e\u003cspan class=\"select__icon\"\u003eIcon Text\u003c/span\u003e\u003c/div\u003e', // html allowed in menu item\n            value: 'grunt'\n        }\n    ]\n}, 'domId');\n```\n---\n\n### Customization\nYou can customize the default layout for the entire component using CSS.\n\nSelectOptgroup add by default two CSS classes `SelectOptgroup__flattened` and `SelectOptgroup__nested`.\n\n#### Example\n```css\n    .SelectOptgroup__flattened .dijitMenuItemLabel {\n         /* style menu item as optgroup */\n        padding-left: 0 !important;\n    }\n\n    .SelectOptgroup__nested .dijitMenuItemLabel {\n        /* style menu item as option */\n        padding-left: 25px !important;\n    }\n```\n\n [Working example available at this page.](example.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgibbok%2Fdijit-select-optgroup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgibbok%2Fdijit-select-optgroup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgibbok%2Fdijit-select-optgroup/lists"}