icicletech / ember-cli-full-calendar Goto Github PK
View Code? Open in Web Editor NEWAn Ember wrapper for jQuery FullCalendar
License: MIT License
An Ember wrapper for jQuery FullCalendar
License: MIT License
For instance I want change the element position, like title to be in middle.
$('.full-calendar').fullCalendar(
{
header:
{
left: 'prev',
center: 'title',
right: 'next'
}
});
I couldn't find a way to do it.
Would be really glad to know the way to implement :)
Trying to run ember server
fails after this commit: ad2aa26#diff-5c38c38a49015ad83f7d342954334047.
{{full-calendar
events=events
allDaySlot=false
register-as="accessToFullCalendar"
nowIndicator=true}}
Any help??
Thanks!
I need now to use github code instead of downloading this with npm to get the latest changes.
Btw I need now almost all of the full calendar options so I will probably try to add everything to this addon in near future. I hope that's not a problem.
Hi,
I attempted to set weekends
to false
and unfortunately, it didn't work. When digging into the code, it looks like not all properties are hooked up. I'm sure you are aware of this, but just wanted to mention it. I need to get working on things, so I may hook things up as I go; would you accept a PR?
Thanks!
James
We are defining the following function twice in ember-cli-full-calendar:
eventDrop: function(event, delta, revertFunc, jsEvent, ui, view) {
_this.sendAction('eventDrop', event, delta, revertFunc, jsEvent, ui, view);
}
This causes things to break in IE when using strict mode
import Ember from 'ember';
export default Ember.Controller.extend({
queryParams: ['from', 'to'],
events: null,
accessToFullCalendar: null,
eventRender: function(event, element) {
element.children().children().attr("data-content", event.projectName + ' - ' + event.userName + ' - ' + event.hours + 'hr(s)');
element.children().children().popup({
on: 'hover'
});
},
actions: {
prev: function() {
this.get('accessToFullCalendar').send('prev');
}
}
});
<div class="max-width-1170">
<button {{action 'prev'}}>Prev</button>
{{full-calendar
events=events
allDaySlot=false
eventLimit=3
eventRender=eventRender
register-as='accessToFullCalendar'
nowIndicator=true}}
</div>
It's showing me 'Uncaught TypeError: Cannot read property 'send' of null' error
Hi,
I'm using ember-moment in my project, with moment-timezone enabled. Unfortunately, with your addon installed, it breaks moment-timezone. See my issue on ember-moment here. I'm going to poke around and see if I can figure it out, but was hoping you might be able to lend some insight.
Thanks!
It looks like this project uses version 2.4.x
. I need to use bug fixes that occurred after.
The current full calendar version is 2.9.0.
I followed the instructions in the readme, and I get this error:
Uncaught Error: Assertion Failed: A helper named 'full-calendar' could not be found
Ember 1.13.3
when I ran ember g full-calendar
, the only change in my project was a change to bower.json, adding moment.js
when I ran npm install --save-dev ember-cli-full-calendar
, the only change I noticed was to package.json, adding the ember-cli add-on.
Seems like maybe ember g should have done more?
I am attempting to set the height property as follows:
{{full-calendar events=events height=700}}
Is this correct?
The year always includes undefinedundefined, no matter what titleFormate i'm using.
Any idea how to fix it?
Since updating Ember from 2.7.3 to 2.9.1*, the component does not render anymore, and my surrounding component's test fails, with the above error message:
Error: Property set failed: object in path "targetObject" could not be found or was destroyed.
at EmberError (http://localhost:4200/assets/vendor.js:xxxxx:xx
Commenting out the line this.set('targetObject.' + this.get('register-as'), this);
fixes the issue for me, but I so far have no need "to be able to send actions from outside" (as the line is explained in a comment above), and I am unsure how this would be handled otherwise (this.get('parentController')+'.'
instead of targetObject.
does not change the error).
targetObject
was deprecated around that time: emberjs/ember.js#14168Hello,
I'm trying to use a function as event source ( function( start, end, timezone, callback ){} ).
I defined a 'getEvents' function in the controller.
This function is called by Fullcalendar, parameters are well passed, but the context is not the controller : 'this' seems to refer to a 'Fullcalendar' object and not to a controller object.
I tried several things to get the controller scope in the 'getEvents' function (using .bind(this), for isntance), but I'd like to know if there is a clean "Ember way' to do this, I'm quite new to Ember ;-)
Thanks in advance !
It's working fine on chrome but it's not rendering any data on safari.
Any help?
Hi,
Great work on this component thus far! Just wanted to see if you had any plans to support Fullcalendar Scheduler, which is a new add-on that was recently released.
Thanks,
James
Hi,
Would it be possible to add support for this?
Tim
I'm using Full Calendar with Ember.JS, and i need to customize the tooltip of each event. In jQuery, i can do it by passing a function to eventRender property. Is there a way to do it with ember-cli-full-calendar?
~ DELETED ~
How to get previous/next month on click of custom previous/next button but before prev/next action called?
Controller:
actions: {
prev: function() {
this.get('accessToFullCalendar').send('prev');
}
}
Template:
<div>
<button {{action 'prev'}}>Prev</button>
<button {{action 'next'}}>Next</button>
{{full-calendar
events=events
allDaySlot=false
eventLimit=3
eventRender=eventRender
register-as='accessToFullCalendar'
nowIndicator=true}}
</div>
Hello,
We have been working on another ember fullcalendar addon, and we thought it might be good to try to merge them together and work on one gold standard, rather than working separately. What do you guys think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.