Skip to content

hamasyou/titanium_alloy_calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is the calendar widget of Titanium Alloy.

SS

Usage

Copy the widgets folder in app/widgets folder of your project. And add dependencies in config.json.

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.

show calendar

var moment = require('alloy/moment'),
    month = moment();

var widget = Alloy.createWidget('jp.co.mountposition.calendar', 'widget', {period: month});
$.index.add(widget.getView());

set image

You can set original image into tile. For example, Set the image into tiles of 16 day.

widget.setImage(16, '/images/cafe.jpg');

select day

You can select tile by programatic.

widget.select(18);

License

Written by @hamasyou Copyright © 2013 MountPosition Inc. Licensed under the [MIT License][MIT] [MIT]: http://www.opensource.org/licenses/mit-license.php

Reference

About

This is the calendar widget of Titanium Alloy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published