mercredi 8 juillet 2015

Before 1.13.x I am use Ember.View.extend() to add custom css class. What I must use now?

I have page design, which needs to be displayed into div element with class displayInline:

displayInline: { display: inline-block; }

(there are some makeup designers with hands derived from ...).

Before Ember.js 1.13.x I'm use hint from Ember.js documentation:

app.ApplicationView = Ember.View.extend({
    classNames: ['displayInline']
});

Which correctly produces what I'm want:

<div id="ember493" class="ember-view displayInline">...</div>

This worked for me now, but generates deprecation and may not work in next Ember.js releases:

DEPRECATION: Ember.View is deprecated. Consult the Deprecations Guide for a migration strategy. See http://ift.tt/1GjGGQ4 for more details.

How now add custom css class for Application?

I tried to searching in Docs and Web - but no results are found.

Aucun commentaire:

Enregistrer un commentaire