Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4836

Static attributes to components

$
0
0

@tixn wrote:

How do I specify attributes the component element has to have that do not change with every new instantiation of the component?

Like, a toggle component should always have aria-role='checkbox'. This is not depending on any property or component attribute the template should pass in.

I found the section on attribute bindings in the "Customizing a component's element" section of the docs; but I don't want a binding to a property, I want the element to just always have a specific set of attributes with a specific set of values.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4836

Trending Articles