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

Render events in ember component(eventComponent) #75

Open
trdp30 opened this issue Dec 6, 2018 · 0 comments
Open

Render events in ember component(eventComponent) #75

trdp30 opened this issue Dec 6, 2018 · 0 comments

Comments

@trdp30
Copy link

trdp30 commented Dec 6, 2018

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.

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

1 participant