scoutforpets / ember-fullcalendar

An Ember Component for FullCalendar and FullCalendar Scheduler
MIT License
39 stars 45 forks source link

Render events in ember component(eventComponent) #75

Open trdp30 opened 5 years ago

trdp30 commented 5 years ago

Hey guys, I'm very new in ember. May be my question is not that appropriate as it should be please pardon me. My Questions is, is there any way to render events in a ember component, such that we can do extra action and customise the view. Is there any way to do the same as ember-power-select dose for options. I tried creating intense of my custom component. But its throwing error for the moment helper that I'm using to render the date. I'm doing as follows, please guide me if somewhere i'm doing wrong

let owner = Ember.getOwner(this);
let componentLookupKey = `component:calendar/event-view`;
let layoutLookupKey = `template:components/calendar/event-view`;
let layout = owner.lookup(layoutLookupKey);
let component = owner.factoryFor(componentLookupKey);
const el = document.createElement('div');
let componentInstance = component.create({
   layout,
});
componentInstance.set('targetObject', this)
componentInstance.appendTo(el);

and I'm getting this error Compile Error moment-format is not a modifier: Helpers may not be used in the element form.

Thanks in advance.