This is the calendar widget of Titanium Alloy.
Copy the widgets folder in app/widgets folder of your project.
And add dependencies in config.json.
Add dependencies of app/config.json
{
"global": {},
"env:development": {},
"env:test": {},
"env:production": {},
"os:ios": {},
"os:android": {},
"dependencies": {
"jp.co.mountposition.calendar": "1.0"
}
}For more information, please see the sample project.
var moment = require('alloy/moment'),
month = moment();
var widget = Alloy.createWidget('jp.co.mountposition.calendar', 'widget', {period: month});
$.index.add(widget.getView());You can set original image into tile. For example, Set the image into tiles of 16 day.
widget.setImage(16, '/images/cafe.jpg');You can select tile by programatic.
widget.select(18);Written by @hamasyou Copyright © 2013 MountPosition Inc. Licensed under the [MIT License][MIT] [MIT]: http://www.opensource.org/licenses/mit-license.php
