{"id":22862448,"url":"https://github.com/tomi77/backbone-forms-chosen","last_synced_at":"2025-03-31T08:46:17.038Z","repository":{"id":58218313,"uuid":"94363697","full_name":"tomi77/backbone-forms-chosen","owner":"tomi77","description":"Backbone-Forms chosen editor","archived":false,"fork":false,"pushed_at":"2017-12-31T09:00:04.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-16T19:03:29.350Z","etag":null,"topics":["backbone-forms","chosen"],"latest_commit_sha":null,"homepage":"https://tomi77.github.io/backbone-forms-chosen/","language":"CoffeeScript","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/tomi77.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-14T18:58:04.000Z","updated_at":"2017-06-17T10:12:43.000Z","dependencies_parsed_at":"2022-08-31T00:12:14.470Z","dependency_job_id":null,"html_url":"https://github.com/tomi77/backbone-forms-chosen","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomi77%2Fbackbone-forms-chosen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomi77%2Fbackbone-forms-chosen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomi77%2Fbackbone-forms-chosen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomi77%2Fbackbone-forms-chosen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomi77","download_url":"https://codeload.github.com/tomi77/backbone-forms-chosen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246443525,"owners_count":20778247,"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":["backbone-forms","chosen"],"created_at":"2024-12-13T10:13:35.209Z","updated_at":"2025-03-31T08:46:17.019Z","avatar_url":"https://github.com/tomi77.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backbone-Forms Chosen editor\n\n[![Code Climate](https://codeclimate.com/github/tomi77/backbone-forms-chosen/badges/gpa.svg)](https://codeclimate.com/github/tomi77/backbone-forms-chosen)\n[![Build Status](https://travis-ci.org/tomi77/backbone-forms-chosen.svg?branch=master)](https://travis-ci.org/tomi77/backbone-forms-chosen)\n[![Coverage Status](https://coveralls.io/repos/github/tomi77/backbone-forms-chosen/badge.svg?branch=master)](https://coveralls.io/github/tomi77/backbone-forms-chosen?branch=master)\n[![Dependency Status](https://david-dm.org/tomi77/backbone-forms-chosen.png)](https://david-dm.org/tomi77/backbone-forms-chosen)\n[![devDependencies Status](https://david-dm.org/tomi77/backbone-forms-chosen/dev-status.svg)](https://david-dm.org/tomi77/backbone-forms-chosen?type=dev)\n[![peerDependencies Status](https://david-dm.org/tomi77/backbone-forms-chosen/peer-status.svg)](https://david-dm.org/tomi77/backbone-forms-chosen?type=peer)\n![Downloads](https://img.shields.io/npm/dt/backbone-forms-chosen.svg)\n\nA [Backbone-Forms](https://github.com/powmedia/backbone-forms) editor that covers [Chosen](https://harvesthq.github.io/chosen/) functionality.\n\n## Installation\n\nVia ``bower``:\n\n~~~bash\nbower install backbone-forms-chosen\n~~~\n\nVia ``npm``:\n\n~~~bash\nnpm install backbone-forms-chosen\n~~~\n\n## Usage\n\nJust replace ``Select`` editor type with ``chosen``.\n\n### Change placeholder\n\nAdd ``data-placeholder`` to ``editorAttrs``.\n\n~~~js\nschema: {\n  states: {\n    type: 'chosen',\n    title: 'States',\n    options: states,\n    editorAttrs: {\n      multiple: 'multiple',\n      'data-placeholder': 'Select countries...'\n    }\n  }\n}\n~~~\n\n### Add extra chosen editor options\n\nAdd ``editorOptions`` to schema.\n\n~~~js\nschema: {\n  states: {\n    type: 'chosen',\n    title: 'States',\n    options: states,\n    editorOptions: {\n      no_results_text: 'Oops, nothing found!'\n    }\n  }\n}\n~~~\n\n## Demo\n\nhttps://tomi77.github.io/backbone-forms-chosen/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomi77%2Fbackbone-forms-chosen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomi77%2Fbackbone-forms-chosen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomi77%2Fbackbone-forms-chosen/lists"}