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.
ui-number-input
Advanced tools
Readme
ui-number-input
HTML Number input with Bootstrap and mobile friendly features
An Ember-CLI addon that provides a highly functional extension of Ember's TextInput control with the following additions:
pattern
attribute set to so that mobile devices start with a numeric keyboardform-control
class to the input control (making the Bootstrap CSS kick in)size
property which allows a simpler interface to the standard Bootstrap CSS sizingstatus
property and the appropriate CSS will be appliedstep
intervalember install:addon ui-number-input
That's it, you're ready to use it.
Note: before version 0.1.5 of Ember CLI the recommended installation command was:
npm install ui-number-input --save-dev
which should still work for now (although in future builds we may utilise some of the initialisation features that the new syntax opens up)
See the Test Demo for a fairly complete set of examples of how to use the control.
We're open to your creative suggestions but please move past the "idea" stage and send us a PR so we can incorporate your ideas without killing ourselves. :)
There are no external Bower dependencies, however, in order to provide reuse to other form components, the ui-number-input
leverages a few mixins that also used by companion addons (ui-text-input
as an example of a addon that uses the same addons). If just planning on using the component then you don't need to concern yourself with this but if you want to extend this or create a PR this is meant to serve as context:
InputStatusMixin
manages all the functionality around status rules and styling. This mixin has the following dependencies:
classNameBindings
- expects to have 'statusClass' and 'statusVisualze' listed in the bindings arraystatus
, statusIsDefault
, statusVisualize
become reserved namesInputCorrectionMixin
Adds auto-correction rules functionality
defaultCorrectionRules
will be blank unless the implementing component sets this themselves (blank may be the desired state)correctionRules
is exposed as a property so that rules can be added by containing view at run timeInputAnimationMixin
UiEventListenerMixin
All of these mixins are currently reside within this addon but will be moved to an external addon dependency in the next release called ui-form-mixins
once we can figure out the namespacing snafu discussed here: SO.
This component is free to use under the MIT license:
Copyright (c) 2015 LifeGadget Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
HTML Number input with Bootstrap and mobile friendly features
The npm package ui-number-input receives a total of 4 weekly downloads. As such, ui-number-input popularity was classified as not popular.
We found that ui-number-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.