{"repo":"webcat12345/ngx-ui-switch","free":true,"listed":false,"github":"https://github.com/webcat12345/ngx-ui-switch","clone":"git clone https://github.com/webcat12345/ngx-ui-switch.git","description":"Angular UI Switch component","language":"TypeScript","stars":112,"topics":["angular","ngx-ui-switch","ngx","angular-cli","ui-switch","switch","ng","angular-ui-switch"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Angular UI Switch Component Description This is a simple iOS 7 style switch component for Angular. Inspired by switchery in Angular. Installation npm: npm install ngx-ui-switch --save yarn: yarn add ngx-ui-switch Some features are not available in previous versions: - CSS styling - Switch content (checkedLabel, uncheckedLabel) #309 #343 - Global options - beforeChange event #314 #359 Usage - Import into a module ( AppModule example below) - Add default css file to appropriate project(s) angular.json Alternatively, the scss version can be imported into a scss file: Global config Use when you want to change default values globally. These settings will override anything passed in via property bindings. Note that if you are using the switch in a child NgModule , such as a lazy loaded module, then you must also import the module in the module itself or within a shared module. Otherwise you will get the error that it is an unknown component as seen in issue #227. Two way binding Params checked type: boolean default: false disabled type: boolean default: false loading Show a loading state for the toggle button when true. Often utilized with beforeChange. type: boolean default: false change type: boolean default: noop changeEvent type: MouseEvent default: noop valueChange type: boolean default: noop beforeChange Utilize an observable to check that the toggle event should complete type: Observable\\ default: noop size type: string default: medium reverse type: boolean default: false co","default_branch":null,"files":null,"tree":[],"storefront":"/r/webcat12345","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/webcat12345/ngx-ui-switch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}