Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@momsfriendlydevco/angular-ui-toggle
Advanced tools
Angular-UI-Toggle ================= An Apple iOS inspired toggle switch input control for [Angular 1](https://angularjs.org) applications. This angular directive is extremely lightweight, not requiring a ton of dependencies (only Angular). Options to easi
Readme
An Apple iOS inspired toggle switch input control for Angular 1 applications. This angular directive is extremely lightweight, not requiring a ton of dependencies (only Angular). Options to easily adjust the styling are provided via Bootstrap-like classes.
A recreation of the toggle switch in iOS 7/8. Source: angular-ui-toggle screenshot
npm install --save @momsfriendlydevco/angular-ui-toggle
<script src="/libs/angular-ui-toggle/dist/angular-ui-toggle.min.js"/>
<link href="/libs/angular-ui-toggle/dist/angular-ui-toggle.min.css" rel="stylesheet" type="text/css"/>
angular.module()
call:var app = angular.module('app', ['uiToggle'])
<ui-toggle ng-model="$ctrl.something"></ui-toggle>
A demo is also available. To use this follow the instructions in the demo directory.
<!-- Success (green) -->
<ui-toggle class="toggle-success"></ui-toggle>
<!-- Primary (deep blue) -->
<ui-toggle class="toggle-primary"></ui-toggle>
<!-- Info (light blue) -->
<ui-toggle class="toggle-info"></ui-toggle>
<!-- Warning (orange) -->
<ui-toggle class="toggle-warning"></ui-toggle>
<!-- Danger (red) -->
<ui-toggle class="toggle-danger"></ui-toggle>
<!-- Extra small -->
<ui-toggle class="toggle-xs"></ui-toggle>
<!-- Small -->
<ui-toggle class="toggle-sm"></ui-toggle>
<!-- Large -->
<ui-toggle class="toggle-lg"></ui-toggle>
Property | Type | Default | Description |
---|---|---|---|
ngModel | boolean | Model to bind to | |
class | string | "" | Optional class style to apply |
disabled | boolean | false | Whether to disable the toggle |
ngDisabled | boolean | false | Alternate binding for disabled |
ngChange | function | Function to call as ({value}) on value change |
FAQs
Angular-UI-Toggle ================= An Apple iOS inspired toggle switch input control for [Angular 1](https://angularjs.org) applications. This angular directive is extremely lightweight, not requiring a ton of dependencies (only Angular). Options to easi
The npm package @momsfriendlydevco/angular-ui-toggle receives a total of 7 weekly downloads. As such, @momsfriendlydevco/angular-ui-toggle popularity was classified as not popular.
We found that @momsfriendlydevco/angular-ui-toggle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.