No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Setting Attributes Inherited from an Interface
To set the value of an attribute inherited from an interface, redefine the attribute in the component and set its default value. Let’s look at an example with the docsample:myIntf interface.
1<!--docsample:myIntf-->
2<aura:interface>
3 <aura:attribute name="myBoolean" type="Boolean" default="true" />
4</aura:interface>This component implements the interface and sets myBoolean to false.
1swfobject.registerObject("clippy.codeblock-1", "9");<!--docsample:myIntfImpl-->
2<aura:component>
3 <aura:attribute name="myBoolean" type="Boolean" default="false" />
4
5 <p>myBoolean: {!v.myBoolean}</p>
6</aura:component>