{"id":17181523,"url":"https://github.com/dimitarchristoff/mooselecta","last_synced_at":"2025-04-13T17:50:18.157Z","repository":{"id":66828044,"uuid":"581329","full_name":"DimitarChristoff/mooSelecta","owner":"DimitarChristoff","description":"mootools select element replacement as a styling enhancement","archived":false,"fork":false,"pushed_at":"2015-02-11T21:38:13.000Z","size":222,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-23T03:32:42.106Z","etag":null,"topics":["mootools","select"],"latest_commit_sha":null,"homepage":"http://fragged.org/mooSelecta/Example/","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/DimitarChristoff.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":"2010-03-26T20:56:11.000Z","updated_at":"2024-03-06T12:16:49.000Z","dependencies_parsed_at":"2023-02-20T14:15:47.903Z","dependency_job_id":null,"html_url":"https://github.com/DimitarChristoff/mooSelecta","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2FmooSelecta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2FmooSelecta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2FmooSelecta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2FmooSelecta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DimitarChristoff","download_url":"https://codeload.github.com/DimitarChristoff/mooSelecta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248757978,"owners_count":21156954,"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":["mootools","select"],"created_at":"2024-10-15T00:34:34.410Z","updated_at":"2025-04-13T17:50:18.130Z","avatar_url":"https://github.com/DimitarChristoff.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"mooSelecta\n===========\n\n![Screenshot](http://fragged.org/mooSelecta/mooSelecta.gif)\n\nA MooTools *select* element styling replacement Class done as a progressive enhancement. Tested and working on:\nIE6, IE7, IE8, IE9, FF3+, Chromium 5+, Safari 4.0.4+, (please report others to christoff at gmail.com)\n\nStyle-able entirely through CSS with the original element events intact, adhering to tabindex, keyboard navigation and so forth.\n\nThe \"real\" selects are being placed off-screen so their functionality is completely preserved in that any forms with them will continue working as per usual.\n\n*Now updated for MooTools 1.4.2 without compatibility mode.*\n\nScreenshots\n-----------\n\nDefault skin:\n\n![Screenshot 1](http://fragged.org/mooSelecta/Example/images/mooSelecta-large1.gif)\n\nSkin using elements from http://www.emblematiq.com/lab/niceforms/\n\n![Screenshot 2](http://fragged.org/mooSelecta/Example/images/mooSelecta-large2.gif)\n\nHow to use\n----------\n\nYou need to setup your CSS classes based upon the ones already provided in the Example/css directory. Look at the options part of the mootools class to see what bits are customisable and follow the example.\n\nTo glue it all together, just include the mootools-core and then mooSelecta.js\n\nWithin your **domready** or **load** callback function, create an instance with whatever options suit you:\n\n    var selecta = new mooSelecta({\n        selector: \"select.selecta\"\n    });\n\n    new mooSelecta({\n        selector: \"select.selecta2\",\n        triggerClass: \"selecta2\",\n        triggerPadding: 24,\n        triggerBeforeImage: \"/img/select-left.png\",\n        triggerBeforeImageWidth: 3,\n        triggerBeforeImageHeight: 21,\n        wrapperClass: \"selecta2Wrapper\",\n        wrapperWidthAdjustment: 0,\n        optionClass: \"selecta2Option\",\n        optionClassSelected: \"selecta2OptionSelected\",\n        optionClassOver: \"selecta2OptionOver\"\n    });\n\nClass methods\n-------------\nThe class itself has plenty of comments throughout so feel free to look at the source code. That being said,\nthere are the following useful methods you can call:\n\n    .replaceSelect(el); // applies the current style to a new select element. Also useful if you build options on the fly and change existing selects\n\n    .bindListeners(); // a somewhat private method that will enable listen events for any and all subsequent **mooSelectas**\n\n    ._addOption(option, el, selected); // adding options to the dropdown wrapper.\n\n    ._toggleOptions(el); // opens or shuts the options list on a select that has been focused\n\n    ._hideOptions(); // closes all open options.\n\n    ._clearSelection(); // attempt to avoid text node selection when clicking on an option trigger\n\nKnown issues\n------------\n\n- Problems with Opera and .fireEvent(\"click\") and the resulting .stop(), causing keyboard navigation issues when pressing enter.\n\nKnown limitations\n-----------------\n\nObviously, the **select** elements are very complex and OS-driven components that incorporate a number of usability features, albeit -- implemented very differently across browsers. You cannot possibly hope to write a single tool that can mimic all known behaviours across the different operating systems either. It's a simple usability decision on what works and what does not, feel free to tweak it to your liking or to the liking of your users.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitarchristoff%2Fmooselecta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimitarchristoff%2Fmooselecta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitarchristoff%2Fmooselecta/lists"}