{"id":17038686,"url":"https://github.com/wbotelhos/nestedy","last_synced_at":"2025-03-22T23:40:29.139Z","repository":{"id":10663714,"uuid":"12897075","full_name":"wbotelhos/nestedy","owner":"wbotelhos","description":":arrow_heading_down: Nestedy - A Nested Fields Creator","archived":false,"fork":false,"pushed_at":"2015-03-25T03:44:58.000Z","size":271,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T03:18:48.741Z","etag":null,"topics":["javascript","jquery-nestedy","nested","nested-attributes","nested-fields","rails"],"latest_commit_sha":null,"homepage":"http://wbotelhos.com/nestedy","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/wbotelhos.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","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":"2013-09-17T14:12:40.000Z","updated_at":"2020-10-09T18:59:15.000Z","dependencies_parsed_at":"2022-09-22T21:01:12.803Z","dependency_job_id":null,"html_url":"https://github.com/wbotelhos/nestedy","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/wbotelhos%2Fnestedy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbotelhos%2Fnestedy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbotelhos%2Fnestedy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbotelhos%2Fnestedy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wbotelhos","download_url":"https://codeload.github.com/wbotelhos/nestedy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245036127,"owners_count":20550662,"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":["javascript","jquery-nestedy","nested","nested-attributes","nested-fields","rails"],"created_at":"2024-10-14T08:57:32.820Z","updated_at":"2025-03-22T23:40:29.108Z","avatar_url":"https://github.com/wbotelhos.png","language":"JavaScript","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=X8HEP2878NDEG\u0026item_name=jQuery%20Nestedy"],"categories":[],"sub_categories":[],"readme":"# jQuery Nestedy - A nested fields creator - [wbotelhos.com/nestedy](http://wbotelhos.com/nestedy)\n\njQuery Nestedy is a plugin to create dynamically nested fields.\n\n## Version\n\n```\n@version        0.1.2\n@since          2013-08-14\n@author         Washington Botelho\n@documentation  wbotelhos.com/nestedy\n@twitter        twitter.com/wbotelhos\n```\n\n## Required Files\n\n+ jquery.nestedy.js\n\n## Options\n\n```js\nadd          : undefined                                  // Callback trigged when the add button is clicked.\naddButton    : '.nestedy-add'                             // The add button element.\ncheckable    : ['checkbox', 'radio']                      // The checkable fields. This fields will be checked with checked=\"checked\".\nclone        : true                                       // If clone will copy the binds.\ncontent      : '.nestedy'                                 // Place where the items will be copied.\nexcludes     : ['id$=\"id\"', 'ame$=\"id\"', 'name$=\"id\\\\]\"'] // Selectors used to exclude field of a item before clone it.\nfocus        : ':last'                                    // The item you want focus, you can choose `:first`, `:last` or `undefined`.\nidx          : /(_)\\d(_)/                                 // Regex used to find the dynamic parte of the id of the field that will be changed.\nmodel        : '.nestedy-item'                            // The element inside the `content` that will be used as a model to be cloned.\nnamex        : /(\\[)\\d(\\])/                               // Regex used to find the dynamic parte of the name of the field that will be changed.\nremove       : undefined                                  // Callback trigged before an item be removed.\nremoveButton : '.nestedy-remove'                          // The class name of the remove button.\nselectable   : ['select-one', 'select-multiple']          // The selectable fields. This fields will be selected with selected=\"selected\"\ntemplate     : undefined                                  // The element inside the `body` that will be used as a model to be cloned.\ntypeful      : [                                          // The typeful fields.\n                  'color',\n                  'date',\n                  'datetime',\n                  'datetime-local',\n                  'email',\n                  'hidden',\n                  'month',\n                  'number',\n                  'password',\n                  'range',\n                  'search',\n                  'tel',\n                  'text',\n                  'textarea',\n                  'time',\n                  'url',\n                  'week'\n               ]\n```\n\n## Usage without template\n\n```html\n\u003cform\u003e\n  \u003cdiv class=\"nestedy\"\u003e\n    \u003cdiv class=\"nestedy-item\"\u003e\n      \u003cinput id=\"some_0_value\" name=\"some[0][value]\"\u003e\n      \u003ci class=\"nestedy-remove\"\u003e\u003c/i\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\n  \u003ci class=\"nestedy-add\"\u003e\u003c/i\u003e\n\u003c/form\u003e\n```\n\n```js\n$('form').nestedy();\n```\n\n## Usage with template\n\n```html\n\u003cdiv id=\"template\" class=\"nestedy-item\"\u003e\n  \u003cinput id=\"some_0_value\" name=\"some[0][value]\"\u003e\n  \u003ci class=\"nestedy-remove\"\u003e\u003c/i\u003e\n\u003c/div\u003e\n\n\u003cform\u003e\n  \u003cdiv class=\"nestedy\"\u003e\u003c/div\u003e\n  \u003ci class=\"nestedy-add\"\u003e\u003c/i\u003e\n\u003c/form\u003e\n```\n\n```js\n$('form').nestedy({\n  idx      : /{index}/,\n  namex    : /{index}/,\n  template : '#template'\n});\n```\n\n## Functions\n\n```js\n$('form').nestedy('add', 2); // Adds a number of items. Ommiting the number, 1 is de default.\n\n$('form').nestedy('remove', 3); // Removes a item. `first`, `last` or the number. Ommiting it, last is de default.\n```\n\n## Licence\n\nThe MIT License\n\n## Donate\n\nYou can do it via [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=X8HEP2878NDEG\u0026item_name=jQuery%20Nestedy). Thanks! (:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwbotelhos%2Fnestedy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwbotelhos%2Fnestedy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwbotelhos%2Fnestedy/lists"}