-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View Customization Options - Weekview and Dayview #154
Comments
@cryptomine14 The calendar-tpls.js is already the dist file that inline the template into the js code.
May I know how do you specify the weekviewAllDayEventTemplateUrl? |
Thank you for the immediate response @twinssbc ! <calendar ... weekview-all-day-event-template-url="weekviewAllDayEventTemplateUrl"> In the templates the week.html is the part that I edited but when I specified it, it doesn't work.. |
@cryptomine14 Do you mean you modify the tpls file directly? If you set a customized template url, you should put your code in billWeekViewAllDayEvent.html. |
@twinssbc No because I can't implement a ng-if scenario if I modify the tpls file directly.. |
@cryptomine14 The default value of weekviewAllDayEventTemplateUrl option is displayEvent.html not weekview.html in teamplates/rCalendar directory. Below is an example, add a html file in your project, myTemplate.html. The content is
The HTML code to declare calendar
In the controller code,
|
@twinssbc |
@raghavendra-synapptra Take a look at the "View Customization Options" in README. It provides several week view templates allow you to customize. |
@twinssbc |
@raghavendra-synapptra OK, the customization option doesn't allow customizing the table structure. You will have to modify the source code, the week view code is in The tpls file is the generated file. I don't suggest modifying it directly, although you can. You could modify the week.html, then run grunt build-tpls, the tpls file will be updated automatically. |
@twinssbc |
@raghavendra-synapptra It's not possible in this version. Also I suggest you upgrade to the new version, https://github.com/twinssbc/Ionic2-Calendar, which uses latest Ionic version. It has more options to customize and supports setting threshold to control when to trigger swiping. |
@twinssbc |
monthviewEventDetailTemplateUrl works for me but weekviewAllDayEventTemplateUrl seems to be not working or I'm just not using it well..
The default value says 'templates/rcalendar/displayEvent.html' and inside the calendar-tpls.js the directive is the entire weekview..
I think I'm just confused.. Help would be greatly appreciated.. :)
The text was updated successfully, but these errors were encountered: