No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
インターフェースから継承される属性の設定
インターフェースから継承される属性の値を設定するには、コンポーネントで属性を再定義します。たとえば、属性 myBoolean が false に設定されたインターフェースをコンポーネントで実装するとします。次の例は、コンポーネントの myBoolean を true に設定します。
1swfobject.registerObject("clippy.codeblock-0", "9");<aura:component implements="auradocs:myIntf">
2 <aura:attribute name="myBoolean" type="Boolean" default="true" />
3</aura:component>インターフェースを実装するコンポーネントが別のコンポーネントに含まれている場合は、説明に従って aura:set を使用できます。または、属性値を次のように設定できます。
1swfobject.registerObject("clippy.codeblock-1", "9");<aura:component>
2 <auradocs:sampleCmp myBoolean="true" />
3</aura:component>