{"id":21726215,"url":"https://github.com/zgldh/bootstrap-switch-avaloncompatible","last_synced_at":"2025-03-20T22:51:42.361Z","repository":{"id":22915089,"uuid":"26263911","full_name":"zgldh/bootstrap-switch-avaloncompatible","owner":"zgldh","description":"AvalonJS can't work with the original Bootstrap-Switch. That's why I made this one.","archived":false,"fork":false,"pushed_at":"2014-11-06T12:14:52.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T19:30:36.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zgldh.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-11-06T09:54:45.000Z","updated_at":"2014-11-06T09:54:45.000Z","dependencies_parsed_at":"2022-08-05T20:16:20.103Z","dependency_job_id":null,"html_url":"https://github.com/zgldh/bootstrap-switch-avaloncompatible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgldh%2Fbootstrap-switch-avaloncompatible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgldh%2Fbootstrap-switch-avaloncompatible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgldh%2Fbootstrap-switch-avaloncompatible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgldh%2Fbootstrap-switch-avaloncompatible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zgldh","download_url":"https://codeload.github.com/zgldh/bootstrap-switch-avaloncompatible/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244706528,"owners_count":20496570,"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":[],"created_at":"2024-11-26T03:23:19.111Z","updated_at":"2025-03-20T22:51:42.332Z","avatar_url":"https://github.com/zgldh.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"bootstrap-switch-avaloncompatible\n=================================\n\nAvalonJS can't work with the original Bootstrap-Switch. That's why I made this one.\n\n\n##Demo: \n [http://www.idagou.com/bootstrap-switch-avaloncompatible.html](http://www.idagou.com/bootstrap-switch-avaloncompatible.html)\n\n##Usage:\n 1  Add .js and .css files\n```HTML\n  \u003cscript src=\"/path/to/bootstrap-switch-avaloncompatible.js\"\u003e\u003c/script\u003e\n```\n \u003e You can use the original css file from Bootstrap Switch 3.\n\n 2  Add `input` tag into your HTML code\n```HTML\n  \u003cinput type=\"checkbox\" name=\"my_switch\" ms-widget=\"switch,$,$switch_option\"\u003e\n```\n\n 3  Add `$switch_option` to your AvalonJS view-model\n```JavaScript\n  var vm = avalon.define({\n    my_switch: true,\n    $switch_option:{\n      state: true,\n      size: 'large',\n      animate: true,\n      onSwitchChange: function(event,state){\n          vm.my_switch = state;\n      }\n    }\n  })\n```\n\n 4  Refresh your page\n\n##Options:\n All the same options with Bootstrap Switch 3 [http://www.bootstrap-switch.org/options-3.html](http://www.bootstrap-switch.org/options-3.html).\n \n I have made all options working except `indeterminate`,`inverse`,`radioAllOff`.\n \nHelp yourself to re-write it into AMD/CMD pattern.\n \nEnjoy it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgldh%2Fbootstrap-switch-avaloncompatible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzgldh%2Fbootstrap-switch-avaloncompatible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgldh%2Fbootstrap-switch-avaloncompatible/lists"}