Customizing a Component’s Element

  • Post author:
  • Post category:EmberJS
  • Post comments:1 Comment
customize component

You can customize the component’s elements such as attributes, class names by using subclass of Ember.A component in the JavaScript.

The following table lists down the different types of customizing a component’s element −

S.No.Component Element & Description
1Customizing Element
Customize the element by using Ember.Component subclass and set the tagName property to it.
2Customizing Element’s Class
Customize the element’s class at the invocation time i.e. while calling the clas name.
3Customizing Attributes
You can customize the attributes by binding them to a DOM element by using the attributeBindings property.

Previous Page:-Click Here

This Post Has One Comment

Leave a Reply