Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

New Calendar View
Started by jjsanchezramirez Jan 06 2016 01:25 PM

1 reply to this topic
corona sdk calendar view new sliding slide swipe swiping
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

jjsanchezramirez

[GLOBAL: userInfoPane.html]
jjsanchezramirez
  • Observer

  • 18 posts
  • Corona SDK

I was looking for a calendar widget with swipe gestures for a business app and, since I wasn't able to find one, I decided to make one.

 

This code is adapted from joelwe's Calendar Sample for Corona SDK and Jose Llausas's A Better SlideView for Corona SDK.

 

2yjy6u1.png

 

It's very easy to use. Simply require the calendar widget and create a new calendar.

-- Get month and year
local date = os.date('*t')
local month = date.month
local year = date.year

-- Create calendar widget
local newSlideView = require('newCalendarView')
local view = newCalendarView.new(month, year)

I hope you find it useful.

 

You can find the full code here.

https://github.com/jjsanchezramirez/Corona-SDK/blob/master/New-Calendar-View/

 



[TOPIC: post.html]
#2

WarrenW

[GLOBAL: userInfoPane.html]
WarrenW
  • Contributor

  • 830 posts
  • Corona SDK

I've been looking for a good calendar widget. Corona said they were coming out with one but I have not seen it yet. I'm not sure if I can do it with yours but I want to mark days with the number of jobs I have assigned already. Maybe by color or the number of little marks by the calendar date. This way I can view my schedule and see what days I am free for more work.




[topic_controls]
[/topic_controls]