{"id":19460044,"url":"https://github.com/fongandrew/meteor-input-block","last_synced_at":"2025-10-07T16:49:51.221Z","repository":{"id":34801071,"uuid":"38786140","full_name":"fongandrew/meteor-input-block","owner":"fongandrew","description":"SimpleSchema form helpers, lightweight alternative to some parts of autoform.","archived":false,"fork":false,"pushed_at":"2015-07-08T23:54:59.000Z","size":100,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-25T01:56:36.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fongandrew.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":"2015-07-08T23:50:51.000Z","updated_at":"2015-07-08T23:54:59.000Z","dependencies_parsed_at":"2022-09-15T10:01:36.497Z","dependency_job_id":null,"html_url":"https://github.com/fongandrew/meteor-input-block","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fongandrew/meteor-input-block","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fongandrew%2Fmeteor-input-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fongandrew%2Fmeteor-input-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fongandrew%2Fmeteor-input-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fongandrew%2Fmeteor-input-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fongandrew","download_url":"https://codeload.github.com/fongandrew/meteor-input-block/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fongandrew%2Fmeteor-input-block/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278811833,"owners_count":26050181,"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-10-07T02:00:06.786Z","response_time":59,"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":[],"created_at":"2024-11-10T17:35:19.923Z","updated_at":"2025-10-07T16:49:51.189Z","avatar_url":"https://github.com/fongandrew.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"fongandrew:input-block\n======================\nThis package contains helpers for showing SimpleSchema validation errors on\nforms. It provides a lightweight alternative to one part of aldeed:autoform.\n\nInstallation\n------------\n`meteor add fongandrew:input-block`\n\nUsage\n-----\nThe `inputBlock` template can called with the following variables:\n\n  * schemaContext - SimpleSchema context\n  * propName - Property in schema this input corresponds to\n  * altError - Text of error state (will be displayed in lieu of any \n      validation errors)\n  * Any other variables will be treated as attributes on the input element\n\n```handlebars\n{{\u003e inputBlock schemaContext=schemaContext \n               placeholder=\"Name\"\n               class=\"name-input my-other-classes\"\n               propName=\"name\"}}\n```\nThis will generate an input/text field with a label and will reactively \ndisplay a validation error underneath the input.\n\nThe `inputBlock` template can also be called with an optional contentBlock \nto use custom input element. The template will mark the first input, textarea, \nor select as the relevant element.\n\n```handlebars\n{{#inputBlock schemaContext=schemaContext propName=\"emailLocal\"\n              altError=duplicateErrorText}}\n  \u003ctextarea class=\"my-class\"\u003eDefault Text\u003c/textarea\u003e\n{{/inputBlock}}\n```\n\n`InputBlock.getObj(template, selector)` can be used to retrieve values from\nall InputBlock inputs in a given template instance and returns the \ncorresponding JavaScript object. Also takes an optional jQuery selector to\nnarrow which inputs get examined.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffongandrew%2Fmeteor-input-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffongandrew%2Fmeteor-input-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffongandrew%2Fmeteor-input-block/lists"}