{"_id":"@akylas/nativescript-checkbox","_rev":"3-8968f34d1405c7a12ef97577d4c728df","name":"@akylas/nativescript-checkbox","dist-tags":{"latest":"2.0.5"},"versions":{"2.0.2":{"name":"@akylas/nativescript-checkbox","version":"2.0.2","description":"NativeScript plugin for checkbox.","main":"checkbox","typings":"index.d.ts","nativescript":{"platforms":{"android":"7.0.0","ios":"7.0.0"}},"scripts":{"clean":"npx rimraf node_modules package-lock.json && npm i","build":"npm i && ts-patch install && tsc","prepublishOnly":"npm run build && npm run build.ng.module","publish":"npm run build.ng.module","build.ng.module":"npm run build && ng-packagr -p angular/package.json","tslint":"cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude \"*demo*/platforms/**\" --exclude \"**/typings/**\"","ci.tslint":"npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude \"**/typings/**\"","demo.ios":"npm run build && cd ../demo && ns run ios --no-hmr","demo.android":"npm run build && cd ../demo && ns run android --no-hmr","demo.ng.ios":"npm run build.ng.module && cd ../demo-ng && ns run ios --no-hmr --env.aot","demo.ng.android":"npm run build.ng.module && cd ../demo-ng && ns run android --no-hmr --env.aot","generate.typings.ios":"cd ../demo && TNS_DEBUG_METADATA_PATH=\"$(pwd)/metadata\" tns build ios && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/typings\" tns build ios && echo 'Now look for your library typings in demo/typings!'","make-changelog":"cd ../ && github_changelog_generator -u nstudio -p nativescript-checkbox","clean.all":"cd ../demo && rimraf hooks node_modules platforms && cd ../demo-ng && rimraf hooks node_modules platforms && cd ../src && rimraf hooks node_modules"},"lint-staged":{"**/*.{js, css, ts, json, scss, html, xml, md}":["prettier --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"npm run tslint"}},"repository":{"type":"git","url":"git+https://github.com/nstudio/nativescript-checkbox.git"},"keywords":["NativeScript","TypeScript","Android","iOS","Material Design","CheckBox","nStudio"],"author":{"name":"Brad Martin","email":"bradwaynemartin@gmail.com"},"bugs":{"url":"https://github.com/nstudio/nativescript-checkbox/issues"},"license":"MIT","homepage":"https://github.com/nstudio/nativescript-checkbox","devDependencies":{"@angular/animations":"~10.0.0","@angular/common":"~10.0.0","@angular/compiler":"~10.0.0","@angular/compiler-cli":"~10.0.0","@angular/core":"~10.0.0","@angular/forms":"~10.0.0","@angular/platform-browser":"~10.0.0","@angular/platform-browser-dynamic":"~10.0.0","@angular/router":"~10.0.0","@nativescript/angular":"~10.1.5","@nativescript/core":"~7.0.3","@nativescript/types":"~7.0.3","@nativescript/webpack":"~3.0.4","husky":"^4.2.5","lint-staged":"^10.2.11","ng-packagr":"~10.1.0","prettier":"^2.0.5","prompt":"^1.0.0","rimraf":"^2.6.3","rxjs":"~6.6.0","tslint":"~6.0.0","ts-patch":"^1.3.0","ts-node":"~9.0.0","typescript":"~3.9.7","zone.js":"0.11.1"},"dependencies":{"ng":"0.0.0"},"_resolved":"","_integrity":"","_from":"file:akylas-nativescript-checkbox-2.0.2.tgz","_id":"@akylas/nativescript-checkbox@2.0.2","_nodeVersion":"15.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+fVZFyhgTex4pQlroh+LxhLRMCpcI9w1BLTxD1nL2IFwBcDX8sd0uwrZYZXScKu2KVWIYJpi86j/a5TPOz+dlg==","shasum":"1d56b1d4d23500f3a9ef6d689017f05022557b57","tarball":"https://registry.npmjs.org/@akylas/nativescript-checkbox/-/nativescript-checkbox-2.0.2.tgz","fileCount":24,"unpackedSize":281948,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYy80CRA9TVsSAnZWagAACccP/0MhKK+9/sUMkduK+Q2I\nlp3JWQ2/+l+gNOOZUqJJ0/5mH8TPPRYkIJz99JiAP64YxN3iYsHnn35frkfp\nWmQT41ySWDDB8s//hOCJc3Ky5GmVIsu0cnKarqeo1h9arVhmkFCkf3vPBjO3\nO/22tQxqwvO2J73ZmiFkVsMS4cNZz1xfjmxEarOkMUbAKT16HctOuNzs9hQb\nU8PhWGjfgDvcxPJzU9mXnjqMogYvqVarccbVbPyC6tZaXsr18JlgUpBsME1k\nlrdEDiz7FFBjl7rEuM7SSS5qdmmUjSBuutl5MNuzhyzzvWHkkZUveWjBWtnV\no9gbKXfPn5EXB9hgObiIVw3xkI4NuKE1APMGbrfr+qyqSV/h7z/sPy/OCGtn\nUl9S3HyVRZvpQY+KrRv624NUglkhF9hPlNgQcncsEkRs73p75uPb+1Z7Oc7y\n294fJvuNw9cNtDN7hE+sjNd9D2kQlqJT+CWjopJfBGtgKRg20IHfGOFSW8DV\n26sgFm8F52q6LcEFG4KQZcQBEUF5Are2qNKli4YDzGR1fUev2u8sHWp+4uJk\nVy3+3VIKxVoJGswZxj4Ywt67OX6R1cK4ynz817Thlzdo0CTKbJLU4VYlntaC\nuXXQoW++Nh7rZbhLdpwQpbtjDYq0lpzOB1KqndA3dYDWdjCFXVWtMyIb9DUj\n6ekB\r\n=WgKK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhbGsXU7Lfyj/miKJobmL+lkxxWP5r5D6Y51HUOwqIvgIgTLqfddYGpOsuzW3l0cS9PNQuOJlhbeyQEmGy+unwI+s="}]},"_npmUser":{"name":"farfromrefuge","email":"martin.guillon@akylas.fr"},"directories":{},"maintainers":[{"name":"farfromrefuge","email":"martin.guillon@akylas.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-checkbox_2.0.2_1617112883724_0.5891220361957887"},"_hasShrinkwrap":false},"2.0.4":{"name":"@akylas/nativescript-checkbox","version":"2.0.4","description":"NativeScript plugin for checkbox.","main":"checkbox","typings":"index.d.ts","nativescript":{"platforms":{"android":"7.0.0","ios":"7.0.0"}},"scripts":{"clean":"npx rimraf node_modules package-lock.json && npm i","build":"npm i && ts-patch install && tsc","prepublishOnly":"npm run build && npm run build.ng.module","publish":"npm run build.ng.module","build.ng.module":"npm run build && ng-packagr -p angular/package.json","tslint":"cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude \"*demo*/platforms/**\" --exclude \"**/typings/**\"","ci.tslint":"npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude \"**/typings/**\"","demo.ios":"npm run build && cd ../demo && ns run ios --no-hmr","demo.android":"npm run build && cd ../demo && ns run android --no-hmr","demo.ng.ios":"npm run build.ng.module && cd ../demo-ng && ns run ios --no-hmr --env.aot","demo.ng.android":"npm run build.ng.module && cd ../demo-ng && ns run android --no-hmr --env.aot","generate.typings.ios":"cd ../demo && TNS_DEBUG_METADATA_PATH=\"$(pwd)/metadata\" tns build ios && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/typings\" tns build ios && echo 'Now look for your library typings in demo/typings!'","make-changelog":"cd ../ && github_changelog_generator -u nstudio -p nativescript-checkbox","clean.all":"cd ../demo && rimraf hooks node_modules platforms && cd ../demo-ng && rimraf hooks node_modules platforms && cd ../src && rimraf hooks node_modules"},"lint-staged":{"**/*.{js, css, ts, json, scss, html, xml, md}":["prettier --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"npm run tslint"}},"repository":{"type":"git","url":"git+https://github.com/nstudio/nativescript-checkbox.git"},"keywords":["NativeScript","TypeScript","Android","iOS","Material Design","CheckBox","nStudio"],"author":{"name":"Brad Martin","email":"bradwaynemartin@gmail.com"},"bugs":{"url":"https://github.com/nstudio/nativescript-checkbox/issues"},"license":"MIT","homepage":"https://github.com/nstudio/nativescript-checkbox","devDependencies":{"@angular/animations":"~10.0.0","@angular/common":"~10.0.0","@angular/compiler":"~10.0.0","@angular/compiler-cli":"~10.0.0","@angular/core":"~10.0.0","@angular/forms":"~10.0.0","@angular/platform-browser":"~10.0.0","@angular/platform-browser-dynamic":"~10.0.0","@angular/router":"~10.0.0","@nativescript/angular":"~10.1.5","@nativescript/core":"~7.0.3","@nativescript/types":"~7.0.3","@nativescript/webpack":"~3.0.4","husky":"^4.2.5","lint-staged":"^10.2.11","ng-packagr":"~10.1.0","prettier":"^2.0.5","prompt":"^1.0.0","rimraf":"^2.6.3","rxjs":"~6.6.0","tslint":"~6.0.0","ts-patch":"^1.3.0","ts-node":"~9.0.0","typescript":"~3.9.7","zone.js":"0.11.1"},"dependencies":{"ng":"0.0.0"},"_resolved":"","_integrity":"","_from":"file:akylas-nativescript-checkbox-2.0.4.tgz","_id":"@akylas/nativescript-checkbox@2.0.4","_nodeVersion":"15.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-AY269vmLUjdA/a0BvhGJlmIqiRKez4BE8UzN0/aIOuQ1O/cGmpDVJHHPnvqvcTbJ1ILpKPpR/vy2Py0CytAaxQ==","shasum":"6ef7b3eaac2a9012bed56458576308a85859053c","tarball":"https://registry.npmjs.org/@akylas/nativescript-checkbox/-/nativescript-checkbox-2.0.4.tgz","fileCount":24,"unpackedSize":281608,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYzJVCRA9TVsSAnZWagAAJh8P+wSL4EFTjGMoMKT+TzDh\nSykLzj/8AJV099RlnZd9bZw2Kg2J2cudPS3eD6cwnsBDeKYhI/lmZiKdm4Iw\n+8HN43ViEJ04v6TA7HR6IeAaHk0uk148JNAUhrJ4ADwIAkIU6/9lNPYCXC4k\nSICM5tPlrl9+LZVTPNB46Zhg8KEa6xqUv9dC4md14ud0q2m+wmnipKzBPgVT\nYKAQIWG+8sDiAGJiQ5FkvwSlIOigY1xoZgiC8NmHv0wBeaT+fNjzMQQdqCHE\nLSnBFFUCgVOub5CVe1GW7UTzlkZWRtZ7ThxgrsfR9TS4crSxvAuGRAnJGYU6\nsiJ81413xfnBEWTffokLzY8K/TtF4aFzHTkuuUIMrO+plUeQzBwByYFu1Bna\nfLK5c0qZMEGqSmwFK4qyckc4W/iHxaLTWActG79zwJjWBrdhlmzn0wOuBsCL\nxWqel0bVqBwkC8Qg3y51ksoqBWqo0OQKjOW8e0wUMA6YuCIzg+O8COi+4Vjn\nguJxHu8NfYqdtzDW2wFN6gf1gPPuH7LZeOi/Y0jgRG2PJD/RaWbkWjYkKChJ\nKjdkDe0OG6RRPkH2hFwi5SIsk46pJLt81pSlqZmchbqir7KM/G6e7m4iXBqI\noKuCQnUHmnqfYJ4e+6SO4TeBSPLJd/FXVN6sFwuUJDyV2+ec8+qQS8aPcimn\no8/G\r\n=uhp8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDysdKM+fP6XCSMNkYmiIFyHRRQNGxsXLKaP7ixb4JDiQIhAK9AF1VbouLESfOltm8PYg94stcXdQpW0uZKFEMrSBNx"}]},"_npmUser":{"name":"farfromrefuge","email":"martin.guillon@akylas.fr"},"directories":{},"maintainers":[{"name":"farfromrefuge","email":"martin.guillon@akylas.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-checkbox_2.0.4_1617113684753_0.1592955305023145"},"_hasShrinkwrap":false},"2.0.5":{"name":"@akylas/nativescript-checkbox","version":"2.0.5","description":"NativeScript plugin for checkbox.","main":"checkbox","typings":"index.d.ts","nativescript":{"platforms":{"android":"7.0.0","ios":"7.0.0"}},"scripts":{"clean":"npx rimraf node_modules package-lock.json && npm i","build":"npm i && ts-patch install && tsc","prepublishOnly":"npm run build && npm run build.ng.module","publish":"npm run build.ng.module","build.ng.module":"npm run build && ng-packagr -p angular/package.json","tslint":"cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude \"*demo*/platforms/**\" --exclude \"**/typings/**\"","ci.tslint":"npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude \"**/typings/**\"","demo.ios":"npm run build && cd ../demo && ns run ios --no-hmr","demo.android":"npm run build && cd ../demo && ns run android --no-hmr","demo.ng.ios":"npm run build.ng.module && cd ../demo-ng && ns run ios --no-hmr --env.aot","demo.ng.android":"npm run build.ng.module && cd ../demo-ng && ns run android --no-hmr --env.aot","generate.typings.ios":"cd ../demo && TNS_DEBUG_METADATA_PATH=\"$(pwd)/metadata\" tns build ios && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/typings\" tns build ios && echo 'Now look for your library typings in demo/typings!'","make-changelog":"cd ../ && github_changelog_generator -u nstudio -p nativescript-checkbox","clean.all":"cd ../demo && rimraf hooks node_modules platforms && cd ../demo-ng && rimraf hooks node_modules platforms && cd ../src && rimraf hooks node_modules"},"lint-staged":{"**/*.{js, css, ts, json, scss, html, xml, md}":["prettier --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"npm run tslint"}},"repository":{"type":"git","url":"git+https://github.com/nstudio/nativescript-checkbox.git"},"keywords":["NativeScript","TypeScript","Android","iOS","Material Design","CheckBox","nStudio"],"author":{"name":"Brad Martin","email":"bradwaynemartin@gmail.com"},"bugs":{"url":"https://github.com/nstudio/nativescript-checkbox/issues"},"license":"MIT","homepage":"https://github.com/nstudio/nativescript-checkbox","devDependencies":{"@angular/animations":"~10.0.0","@angular/common":"~10.0.0","@angular/compiler":"~10.0.0","@angular/compiler-cli":"~10.0.0","@angular/core":"~10.0.0","@angular/forms":"~10.0.0","@angular/platform-browser":"~10.0.0","@angular/platform-browser-dynamic":"~10.0.0","@angular/router":"~10.0.0","@nativescript/angular":"~10.1.5","@nativescript/core":"~7.0.3","@nativescript/types":"~7.0.3","@nativescript/webpack":"~3.0.4","husky":"^4.2.5","lint-staged":"^10.2.11","ng-packagr":"~10.1.0","prettier":"^2.0.5","prompt":"^1.0.0","rimraf":"^2.6.3","rxjs":"~6.6.0","tslint":"~6.0.0","ts-patch":"^1.3.0","ts-node":"~9.0.0","typescript":"~3.9.7","zone.js":"0.11.1"},"dependencies":{"ng":"0.0.0"},"_resolved":"","_integrity":"","_from":"file:akylas-nativescript-checkbox-2.0.5.tgz","_id":"@akylas/nativescript-checkbox@2.0.5","_nodeVersion":"15.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-aABSuxnnw6Wd9fuW/0sXPwJMyfOTczkFJrLxS7JmHptjiAmcBKAHS311wpX3DqRaGUxuosBsYoDGvfgSCJQ65Q==","shasum":"26e569792e80895e6fcad385ce425f37e9710fa5","tarball":"https://registry.npmjs.org/@akylas/nativescript-checkbox/-/nativescript-checkbox-2.0.5.tgz","fileCount":24,"unpackedSize":281518,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYzUbCRA9TVsSAnZWagAAxsAP/jVvJ/fCZ/7hVhqeIylS\nuUW5yaJO31ctJFSmpdG5l2g+MdBntKXIJaDaN229ehBJ94E/or5OevC9/Cvv\nZ67DV/+oEjmhfF6hYIxEU+DV1ZW3YKrYOEFFEx9if8FxlAcK6DLg1bFo3x89\nrQ9GRsSlcXKPA8TNRyuUCLRvmTnqXbh66b339zp3b+NJ8IfqPh5jDn+oetKV\n+MdoZ1swDouTKqInrE2tSsxv/Dj8iFJuz9hT90ksMUYHkhSJ8jdJpG/P2PQI\nsWIJ3tMF8C1sP+rnwOFZ1FONoCiRWF79dPIEnmat42hnCFeQT41INBeHa7x5\nNm7sIxnFsOOS/26/55/JXeD5uziTslJHNPtrmuNvh1flxF7n47qr8tyIC05m\n+0Y1cz9PXX5GCK/qwCTm9kTfbT6Kne3R6EYFra1qTeIur3f6RBLzKM1qqMfM\nfy7UX+NzfBHCk0WDxo0B8WapwmktxX7b+XaMvT70Q3ls9r3aeRGughxdPbhh\nevZmvApWVv5etaNAoVyry3RYitTzAU4saKhMXG5yV6R7bt2SR0jIeuDTfWOb\nMWuAbf7xOgOdGcy2F/nVHJU7ygaFxVGS058yoOeCXuhLbwY4fV6UClq4ptpc\nlS9d/q4LiV60XY3xJvCFhqupNdPv0Dj0M9jjovSsauZmq7Felw0zV/fxOuvd\n+Vxs\r\n=wrUQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNpXFJvZa6HPzRr4VGuFXffITB/ZZhHyNmcdRmAuxiCQIgMHO6dqJSsgdbGk6CLJCXlzJec/PDYWkLOGMRTtShjyw="}]},"_npmUser":{"name":"farfromrefuge","email":"martin.guillon@akylas.fr"},"directories":{},"maintainers":[{"name":"farfromrefuge","email":"martin.guillon@akylas.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-checkbox_2.0.5_1617114395227_0.6891559779475529"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-30T14:01:23.514Z","2.0.2":"2021-03-30T14:01:23.840Z","modified":"2022-04-04T12:31:51.401Z","2.0.4":"2021-03-30T14:14:44.955Z","2.0.5":"2021-03-30T14:26:35.414Z"},"maintainers":[{"name":"farfromrefuge","email":"martin.guillon@akylas.fr"}],"description":"NativeScript plugin for checkbox.","homepage":"https://github.com/nstudio/nativescript-checkbox","keywords":["NativeScript","TypeScript","Android","iOS","Material Design","CheckBox","nStudio"],"repository":{"type":"git","url":"git+https://github.com/nstudio/nativescript-checkbox.git"},"author":{"name":"Brad Martin","email":"bradwaynemartin@gmail.com"},"bugs":{"url":"https://github.com/nstudio/nativescript-checkbox/issues"},"license":"MIT","readme":"<a align=\"center\" href=\"https://www.npmjs.com/package/@nstudio/nativescript-checkbox\">\n    <h3 align=\"center\">NativeScript Checkbox</h3>\n</a>\n<h4 align=\"center\">A NativeScript plugin to provide a checkbox widget, radio buttons are also possible.</h4>\n\n<p align=\"center\">\n    <a href=\"https://www.npmjs.com/package/@nstudio/nativescript-checkbox\">\n        <img src=\"https://github.com/nstudio/nativescript-checkbox/workflows/Build%20CI/badge.svg\" alt=\"Action Build\">\n    </a>\n    <a href=\"https://www.npmjs.com/package/@nstudio/nativescript-checkbox\">\n        <img src=\"https://img.shields.io/npm/dt/nativescript-checkbox.svg?label=npm%20downloads\" alt=\"npm\">\n    </a>\n    <a href=\"https://github.com/@nstudio/nativescript-checkbox/stargazers\">\n        <img src=\"https://img.shields.io/github/stars/@nstudio/nativescript-checkbox.svg\" alt=\"stars\">\n    </a>\n    <br />\n</p>\n\n---\n\n### Installation\n\nFrom your command prompt/terminal go to your app's root folder and execute:\n\n#### NativeScript 7+:\n\n```bash\nns plugin add @nstudio/nativescript-checkbox\n```\n\n#### NativeScript prior to 7:\n\n```bash\ntns plugin add @nstudio/nativescript-checkbox@1.0.0\n```\n\n#### Platform controls used:\n\n| Android                                                                                  | iOS                                                  |\n| ---------------------------------------------------------------------------------------- | ---------------------------------------------------- |\n| [Android CheckBox](https://developer.android.com/reference/android/widget/CheckBox.html) | [BEMCheckBox](http://cocoapods.org/pods/BEMCheckBox) |\n\n## Sample Usage\n\n| Android Sample                     | iOS Sample                            |\n| ---------------------------------- | ------------------------------------- |\n| ![Sample1](./screens/checkbox.gif) | ![Sample2](./screens/iosCheckbox.gif) |\n\n## Usage\n\n###\n\n```XML\n<Page\n  xmlns=\"http://schemas.nativescript.org/tns.xsd\"\n  xmlns:CheckBox=\"@nstudio/nativescript-checkbox\" loaded=\"pageLoaded\">\n  <ActionBar title=\"Native Checkbox\" />\n  <StackLayout>\n    <CheckBox:CheckBox checked=\"{{ checkProp }}\" text=\"{{ myCheckText }}\" fillColor=\"{{ myCheckColor }}\" id=\"myCheckbox\" />\n    <CheckBox:CheckBox text=\"CheckBox Label\" checked=\"false\" />\n  </StackLayout>\n</Page>\n```\n\n###\n\n```typescript\n\nimport { CheckBox } from '@nstudio/nativescript-checkbox';\nimport { topmost } from '@nativescript/core/ui/frame';\n\npublic toggleCheck() {\n  const checkBox = topmost().getViewById('yourCheckBoxId');\n  checkBox.toggle();\n}\n\npublic getCheckProp() {\n  const checkBox = topmost().getViewById('yourCheckBoxId');\n  console.log('checked prop value = ' + checkBox.checked);\n}\n\n```\n\n### Angular Usage Sample:\n\n```typescript\nimport { TNSCheckBoxModule } from '@nstudio/nativescript-checkbox/angular';\n\n@NgModule({\n  imports: [TNSCheckBoxModule]\n  // etc.\n})\nexport class YourModule {}\n\n// component:\nexport class SomeComponent {\n  @ViewChild('CB1') FirstCheckBox: ElementRef;\n  constructor() {}\n  public toggleCheck() {\n    this.FirstCheckBox.nativeElement.toggle();\n  }\n\n  public getCheckProp() {\n    console.log(\n      'checked prop value = ' + this.FirstCheckBox.nativeElement.checked\n    );\n  }\n}\n```\n\n```html\n<StackLayout>\n  <CheckBox #CB1 text=\"CheckBox Label\" checked=\"false\"></CheckBox>\n  <button (tap)=\"toggleCheck()\" text=\"Toggle it!\"></button>\n  <button (tap)=\"getCheckProp()\" text=\"Check Property\"></button>\n</StackLayout>\n```\n\n### NativeScript-Vue Usage Sample\n\nIn your `main.js` (The file where the root Vue instance is created) register the element\n\n```js\nVue.registerElement(\n  'CheckBox',\n  () => require('@nstudio/nativescript-checkbox').CheckBox,\n  {\n    model: {\n      prop: 'checked',\n      event: 'checkedChange'\n    }\n  }\n);\n```\n\nAnd in your template, use it as:\n\n```html\n<check-box :checked=\"isChecked\" @checkedChange=\"isChecked = $event.value\" />\n```\n\nUse `checked` instead of `v-model`. [See #99](https://github.com/nstudio/nativescript-checkbox/issues/99).\n\n## Properties\n\n- **checked** - boolean\n- **text** - text to use with the checkbox\n- **fillColor** - Color of the checkbox element\n- **boxType** - Either 'square' (default) or 'circle'. It's recommended to use 'circle' for radiobuttons. Note that plugin version 3.0.0 switched the default for iOS to 'square' for alignment with Android. Still want `circle` on iOS and `square` on Android? Just make the `boxType` value conditional.\n\n## Events\n\n- **checkedChange** - Use a reference to the CheckBox component to grab it's `checked` property when this event fires to see the new value.\n\n## API\n\n- **toggle()** - Change the checked state of the view to the inverse of its current state.\n\n## Css Styling\n\n- **color** - set the text label color\n- **font-size** - checkbox is sized to text from here : default 15\n- **border-width** - set the line width of the checkbox element: iOS only\n\n## Styling [Android]\n\n- **checkStyle** - set to the name of your drawable\n- **checkPadding** - set the padding of the checkbox\n\nAdd the following to `app/App_Resources/Android/drawable/checkbox_grey.xml`\n\n```xml\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:state_enabled=\"false\" android:state_checked=\"true\" android:drawable=\"@drawable/ic_checkbox_checked_incomplete\" />\n    <item android:state_enabled=\"false\" android:state_checked=\"false\" android:drawable=\"@drawable/ic_checkbox_grey_incomplete\" />\n    <item android:state_checked=\"true\" android:drawable=\"@drawable/ic_checkbox_checked_grey\"/>\n    <item android:state_checked=\"false\" android:drawable=\"@drawable/ic_checkbox_grey\" />\n</selector>\n```\n\n## Radiobuttons, anyone?\n\nWant to use radiobutton behavior for your checkboxes (only one option possible within a group)?\nSet `boxType=\"circle\"` and check out the second tab in the [Angular demo](demo-ng/), here's a screenshot:\n\n<img src=\"./screens/radiobuttons.png\" width=\"225px\"/>\n\n## Contributing & Running Demo Apps\n\n- Execute from root:\n  - For android: `npm run demo.android`\n  - For iOS: `npm run demo.ios`\n  - `npm run demo.ng.android` (for angular android)\n  - `npm run demo.ng.ios` (for angular ios)\n","readmeFilename":"README.md"}