Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smontgomerie/Appcelerator-Calendar-Module
https://github.com/smontgomerie/Appcelerator-Calendar-Module
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/smontgomerie/Appcelerator-Calendar-Module
- Owner: smontgomerie
- License: other
- Created: 2010-10-06T05:37:17.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-10-06T06:02:47.000Z (about 14 years ago)
- Last Synced: 2023-03-11T04:13:08.142Z (almost 2 years ago)
- Language: Objective-C
- Homepage:
- Size: 103 KB
- Stars: 52
- Watchers: 3
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
- awesome - Appcelerator-Calendar-Module - null (etc)
- awesome - Appcelerator-Calendar-Module - null (etc)
README
= Appcelerator Calendar Module
===========================================This is a module that displays an iPhone-like calendar widget, based on the work of Keith Lazuka, dba The Polypeptides .
== Building
--------------First download the code:
git clone [email protected]:smontgomerie/Appcelerator-Calendar-Module.gitcd Appcelerator-Calendar-Module
Then build the code.
./build.pyInstall the calendar into your app.
cp calendarmodule-iphone-xxx.zip ~/Library/Application\ Support/Titanium/You'll need to at least touch your iPhone app before including it (assuming you're building with Xcode, not Titanium).
== Basic Usage
---------------To add a view:
var calendarView = Ti.Calendar.createView({
top:0
/*headerColor: "red",
calendarColor: "#aaa8a8"*/
});
calendarView.show();
win.add(calendarView);When a date is selected, a 'dateSelected' event is thrown:
calendarView.addEventListener('dateSelected', function(e) {
try {
// Do something with the date
} catch(e) {
Ti.API.info(e);
}
});The component is able to show that there is an event on a certain date with a dot icon. To set which dates are set:
var datesArray = [new Date()];
calendarView.setDates(datesArray);
You can also use the calendar to save a date (and this needs to be refactored):calendarView.saveEvent(start, end, event.summary, event.location, event.description);
That's pretty much it! Any edits/improvements are appreciated.