Skip to content
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

Including a graph inside a day cell #13

Open
qbdpwereq opened this issue Dec 16, 2014 · 3 comments
Open

Including a graph inside a day cell #13

qbdpwereq opened this issue Dec 16, 2014 · 3 comments

Comments

@qbdpwereq
Copy link

In your calendar's month view, I would like have graphs (directive) for each day cell. How could I go about this? Thanks in advance.

@twinssbc
Copy link
Owner

@qbdpwereq In the template/rcalendar/month.html, the below code is responsible for rendering each day cell. You can add the graph into it.

<td ng-repeat="dt in row track by dt.date" class="monthview-dateCell" ng-click="select(dt.date)"
                ng-class="{'text-center':true, 'monthview-current': dt.current&&!dt.selected&&!dt.hasEvent,'monthview-secondary-with-event': dt.secondary&&dt.hasEvent, 'monthview-primary-with-event':!dt.secondary&&dt.hasEvent&&!dt.selected, 'monthview-selected': dt.selected}">
                <div ng-class="{'text-muted':dt.secondary}">
                    {{dt.label}}
                </div>
            </td>

@qbdpwereq
Copy link
Author

Thanks. I'm able to make changes to the template and have it get rendered on the browser. My problem is that, if I make a change to the template and then refresh the browser, it will still show the old version as opposed to the changes I just made.

@twinssbc
Copy link
Owner

@qbdpwereq maybe it's related to browser cache?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants