I need to create a web application using ember js.In which there is a need for c3 chart creation.could you please help me?thanks in advance.
You need to create a component, which will render a chart. Check an ember documentation to learn about components. This post from an official blog also should be useful, as it contains a description of new component hooks.
Related
I inherited an ember application and can't figure out how to add a component to an engine.
I tried to create the component with:
web-app$ ember g component about-profile -ir fs-engine
installing component
create lib/fs-engine/addon/components/about-profile.js
create lib/fs-engine/addon/templates/components/about-profile.hbs
installing component-test
create tests/integration/components/about-profile-test.js
installing component-addon
create lib/fs-engine/app/components/about-profile.js
I then added the following to lib/fs-engine/addon/templates/components/about-profile.hbs
<article>
<h1>Test</h1>
<p>Please work</p>
</article>
I try to invoke this component at the template file lib/fs-engine/addon/templates/gw/itemdetail.hbs
<div>{{about-profile}}</div>
It returns empty. Nothing is rendered. No error messages are displayed anywhere.
I am sure I am missing something very basic since I am new to Ember but I did read Ember Engines guide (http://ember-engines.com/guide) and Ember Component guide (https://guides.emberjs.com/v2.12.0/components/defining-a-component/).
thanks for your help!
as it turns out, I was able to resolve this issue by stopping "ember server" and then restarting it after creating the component. simple as that!
I use Ember 1.0.0 and i can not update to new versions now. I need a solution for Ember 1.0.0.
For example Google Adwords needs to pass custom parameters to visited website so Analytics can measure the traffic. I need to have it.
So for example URL is: mywebsite.com/someemberpage/?utm_source=test&utm_medium=test&utm_term=test&utm_content=test&utm_campaign=test
But after website loads Ember strips custom parameter. How to prevent it without updating Ember.js?
( In case Ember does not strip custom parameters please write, because if so, some JS code on my website does this. Thanks! )
Deprecated but these might be what your looking for...
https://github.com/knownasilya/ember-query-params
https://github.com/alexspeller/ember-query
In the past we used ember-query-params. It did the job just fine.
Hope this helps,
Jeff
Hi is there a way in Ember to lazy load stuff into a table? I am loading the first page initially but then as the user scrolls down I want to load ping the second page API call and add that into the table. Is there a way of doing that in Ember? A link to a tutorial will be highly appreciated. I cannot seem to find one
Ember-Table is a pre-built component that does exactly that.
I am getting started with Ember, and Django Rest Framework and I can't seem to peice together how to connect a model so that Ember can use the data in that model and create a simple drop down box. I have one model that I am starting with that is as such:
id
name
security
status
All I want to achieve is allowing Ember to use the data in this model and create a dropdown like so.
<select id="model">
<option value="model.ID">model.Name</option>
</select>
Can anyone help me with this? I am complete new to Ember and Django Rest.
Without going into a ton of detail, I've created a mini example of what you're looking for
http://emberjs.jsbin.com/Ozimatuj/2/edit
You'll note that I'm using mockjax, so instead of hitting any real endpoint, it's all mocked. Additionally I'd recommend using a client side record management solution (such as ember-data or ember-model). That's another discussion though.
In the application route (which correlates with the root of your app) it hits the model hook (which should return the model associated with that route. I'm returning a POJO of the users. That model is being assigned as the content of the application controller (automatically generated). The the application template is being built, and it's being backed by the application controller. Inside the application template we create an instance of ember select, and we tell it that the content backing it is model (which is the model/content in the application controller). We also say, use bind the user model (you could do id) and the name to the value and the label respectively.
I then bound the value of the select to selectedPerson, so anytime the value changes, the selectedPerson updates, the template which talks about that person will update. Magic. Ember does the rest.
This is a really broad question, so if you have any other questions, please ask a specific question, and I'd really recommend going through the getting started guide, it's really short, but will give you a decent foundation of terminology and methodology of Ember. http://emberjs.com/guides/getting-started/
For Ember Data I'd do a quick read the of the transition document for ED 1.0 beta.
https://github.com/emberjs/data/blob/master/TRANSITION.md
DS.DjangoRESTSerializer = DS.RESTSerializer.extend();
DS.DjangoRESTAdapter = DS.RESTAdapter.extend({
defaultSerializer: "DS/djangoREST"
});
I want to develop a custom component that have tabs like com_messages built in component to joomla 2.5. Any one can guide me?
I look into it but not getting it
http://docs.joomla.org/Developing_a_Model-View-Controller_Component/2.5/Adding_categories
Hi you can easily create your own compoenent by using the following website..
http://www.notwebdesign.com/joomla-component-creator/
Just create an account and create your own component... All the best..