lightning:flexipageRegionInfo
上位のコンポーネントに Lightning ページ範囲の情報を提供します。
lightning:flexipageRegionInfo コンポーネントは、上位のコンポーネントに Lightning ページ範囲の情報を提供します。Lightning アプリケーションビルダーでコンポーネントがドロップされた範囲の幅を渡します。詳細は、「lightning:flexipageRegionInfo による Lightning ページコンポーネントでの幅の認識」を参照してください。
1<aura:component implements="flexipage:availableForAllPageTypes">
2<aura:attribute name="width" type="String" description=" width of parent region"/>
3 <lightning:flexipageRegionInfo width="{!v.width}"/>
4 <div id="MyCustomComponent" class="{! v.width}">
5 <!-- Your custom component here -->
6 </div>
7</aura:component>属性
| 属性名 | 属性型 | 説明 | 必須項目 |
|---|---|---|---|
| body | Component[] | コンポーネントのボディ。マークアップでは、これはタグのボディに含まれるすべてを指します。 | |
| width | String | コンポーネントが存在する範囲の幅。 |