{"id":18515202,"url":"https://github.com/sebastianha/angular-bootstrap-checkbox","last_synced_at":"2025-04-06T05:17:31.612Z","repository":{"id":17251917,"uuid":"20021315","full_name":"sebastianha/angular-bootstrap-checkbox","owner":"sebastianha","description":"A checkbox for AngularJS styled to fit the Twitter Bootstrap standard design","archived":false,"fork":false,"pushed_at":"2017-04-05T12:46:53.000Z","size":59,"stargazers_count":149,"open_issues_count":17,"forks_count":67,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-04-24T13:56:08.180Z","etag":null,"topics":["angularjs","bootstrap","checkbox","javascript"],"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/sebastianha.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":"2014-05-21T13:00:34.000Z","updated_at":"2023-04-27T21:09:19.000Z","dependencies_parsed_at":"2022-07-26T14:32:04.331Z","dependency_job_id":null,"html_url":"https://github.com/sebastianha/angular-bootstrap-checkbox","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianha%2Fangular-bootstrap-checkbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianha%2Fangular-bootstrap-checkbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianha%2Fangular-bootstrap-checkbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianha%2Fangular-bootstrap-checkbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastianha","download_url":"https://codeload.github.com/sebastianha/angular-bootstrap-checkbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247436290,"owners_count":20938533,"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":["angularjs","bootstrap","checkbox","javascript"],"created_at":"2024-11-06T15:46:54.336Z","updated_at":"2025-04-06T05:17:31.393Z","avatar_url":"https://github.com/sebastianha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"angular-bootstrap-checkbox\n==========================\n\nA checkbox for AngularJS styled to fit the Twitter Bootstrap standard design\n\nScreenshot:\n\n![Screenshot](/checkbox.png?raw=true \"Screenshot\")\n\n### Description:\n\nThe standard checkboxes which use the input HTML element just don't look good in combination with Bootstrap.\n\nSurprisingly, I could not find any nice looking, simple checkbox, so I built one. It is based on a button and Glyphicons which behaves like a normal checkbox.\n\nThe angular-bootstrap-checkbox is compatible to the use of the original AngularJS input[checkbox], with one minor change: while the original implementation allows an \"uninitialized\" or other then defined state of the model this one forces \"false\" or \"ng-false-value\" (not checked) when not set to \"true\" or \"ng-true-value\".\n\n### Installation via Bower:\n\n```\n$ bower install angular-bootstrap-checkbox --save\n```\n\n### Usage:\n\nAdd \"ui.checkbox\" to your modules list. Then you can use it like AngularJS input[checkbox]:\n\n```\n\u003ccheckbox\n    ng-model=\"checkboxModel\"\n    name=\"custom-name\"              (Optional)\n    ng-true-value=\"The Truth\"       (Optional)\n    ng-false-value=\"The Untruth\"    (Optional)\n    ng-change=\"onChange()\"          (Optional)\n    indeterminate=\"true\"            (Optional)\n    ng-indeterminate-value=\"test\"   (Optional)\n\u003e\u003c/checkbox\u003e\n```\n\nAdditionally you can set the size:\n\n```\n\u003ccheckbox ...\u003e\u003c/checkbox\u003e            (Normal size, corresponds to 'btn-xs')\n\u003ccheckbox large ...\u003e\u003c/checkbox\u003e      (Large, corresponds to 'btn-sm')\n\u003ccheckbox larger ...\u003e\u003c/checkbox\u003e     (Larger, corresponds to Button default size)\n\u003ccheckbox largest ...\u003e\u003c/checkbox\u003e    (Largest, corresponds to 'btn-lg')\n```\n\n![Screenshot](/sizes.png?raw=true \"Screenshot Sizes\")\n\nAnd also style the checkboxes like Bootstrap buttons:\n\n```\n\u003ccheckbox class=\"btn-primary\"\u003e\u003c/checkbox\u003e    (Looks like primary button)\n\u003ccheckbox class=\"btn-success\"\u003e\u003c/checkbox\u003e    (Looks like success button)\n\u003ccheckbox class=\"btn-info\"\u003e\u003c/checkbox\u003e       (Looks like info button)\n\u003ccheckbox class=\"btn-warning\"\u003e\u003c/checkbox\u003e    (Looks like warning button)\n\u003ccheckbox class=\"btn-danger\"\u003e\u003c/checkbox\u003e     (Looks like danger button)\n```\n\n![Screenshot](/styles.png?raw=true \"Screenshot Styles\")\n\nSee index.html and app.js for examples and how it works.\n\n### Testing:\n\nStart web server e.g. via Python:\n```\n$ python -m SimpleHTTPServer 8000\n```\n\nStart Karma E2E tests (has to be installed globally before):\n```\n$ karma start\n```\n\n### License\n\nCopyright (c) 2016 Sebastian Hammerl, Getslash GmbH\n\nLicensed under the MIT License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianha%2Fangular-bootstrap-checkbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianha%2Fangular-bootstrap-checkbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianha%2Fangular-bootstrap-checkbox/lists"}