Skip to content

A money keyboard widget for Axway Titanium providing a platform independent way of capturing money values.

Notifications You must be signed in to change notification settings

centrevilletech/ti.moneykeyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Ti.MoneyKeyboard Titanium Appcelerator Titanium

Introducing Ti.MoneyKeyboard, an Alloy Widget for doing cross platform dollar amount entry in Titanium.

Developed by Josh Lambert, Lead Mobile Developer at Centreville Tech LLC

Usage

Create the widget in XML

<Alloy>
	<Window class="container">
		<Widget src="ti.moneykeyboard" name="widget" id="tiMoneyKeyboard" />
        	<Label text="0.00" id="moneyValueLbl" />
	</Window>
</Alloy>

Set the widget up inside of your controller.

$.tiMoneyKeyboard.setErrorShakeView($.moneyValueLbl); // Set what we should shake when an error happens.
$.tiMoneyKeyboard.setActiveLabel($.moneyValueLbl); // Set what label we should bind the keyboard to. Must bind before opening/closing the keyboard!

API

Methods

  • open() - opens the money keyboard.
  • close() - closes the money keyboard.
  • setActiveLabel() - used to bind the keyboard to a label that should update when the user enters a money value.
  • setErrorShakeView() - used to bind the keyboard to a view it should shake when the user trys to enter a value that's too long.

Credits

  • Hans Knöchel (@hansemannnn) for going above and beyond for the Titanium developer community time and time again.
  • Jason Kneen (@jasonkneen) for producing a lot of great community material, including the Titanium Talk podcast.
  • Fokke Zandbergen (@FokkeZB) for tons of useful modules and documentation that helped me learn a lot about Titanium.

License

The MIT License (MIT)

Copyright (c) 2018 Centreville Tech LLC

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.

About

A money keyboard widget for Axway Titanium providing a platform independent way of capturing money values.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published