セクション&セクションコラム

SectionおよびSectionColumnコンポーネントは、フォームフィールドやコンテンツを整理するためのレスポンシブな多列レイアウトを提供します。列は水平に配置され、利用可能な幅が制限されると自動的に次の行に巻き付きます。

React
Blazor

Sectionの中に1つ以上のSectionColumn部品を配置します。列は利用可能な幅に均等に分布しています。ColumnCountを使って列数(1〜4)を明示的に設定します。省略すると、SectionColumn子の数がデフォルトになります。

React
Blazor

列の最小幅

SectionColumnMinWidthを設定して、列が次の行に巻き替わるタイミングを制御します。1列あたりの利用可能な幅がこの閾値を下回ると、列は縦に積み重なります。デフォルトは340pxです。

React
Blazor

列幅

SectionColumnに付けてWidthを使い、列のシェアを大きくしたり小さくしたりします。幅はCSSパーセンテージではなく比率です。3列に3列、Width="3"Width="4"Width="3"30%(3 + 4 + 3 = 10)で配置されます。Widthのない列はデフォルトの等分分布に戻されます。

React
Blazor

ヘッダーとフッター

SectionSectionColumnHeaderText/HeaderおよびFooterText/Footerパラメータをサポートしています。簡単なテキスト見出しにはHeaderTextを、カスタムの断片をレンダリングするにはHeaderを使いましょう。

React
Blazor

国境

SectionSectionColumnBorderVisible="true"を設定して、その周囲に枠を表示させてください。境界線は断面と各列で独立して設定できます。

React
Blazor

内容指向

デフォルトでは、 SectionColumn 内のエディタコンポーネントは縦に積み重ねられています。 ColumnContentOrientation="ComponentOrientation.Horizontal" を水平に配置するように設定してください。 HorizontalGapVerticalGap を使ってアイテム間の間隔をコントロールしましょう。

React
Blazor

4列のリアクションでラップする Section

Reactの例
ブレイザーの例
第1列
第2列
第3列
第4列
React TypeScript
Razor

列幅の例

以下の Width 値を調整して、各列の行割合を変更します。幅は比率であり、列のレンダリングパーセンテージはその値を3つの合計で割ったものです。

Reactの例
ブレイザーの例
30%
40%
30%
React TypeScript
Razor

設定オプション

以下のコントロールを使って、 SectionSectionColumnの両方の境界線、ヘッダー、フッターを探索できます。

Reactの例
ブレイザーの例
セクションの境界線は見えますか? セクションの列の枠が見えますか?
第1列
第2列
第3列
第4列
React TypeScript
Razor
反応してください ブレイザー

Section クラス

パラメータ

名称
種類
デフォルト
概要
BorderVisiblebool
False
ChildContentRenderFragment?
ChildContentStylestring?
ColumnCountint?
ColumnMinWidthstring?
340px
FooterRenderFragment?
FooterStylestring?
FooterTextstring?
HeaderRenderFragment?
HeaderStylestring?
HeaderTextstring?
名称: BorderVisible
種類: bool
デフォルト: False
名称: ChildContent
種類: RenderFragment?
名称: ChildContentStyle
種類: string?
名称: ColumnCount
種類: int?
名称: ColumnMinWidth
種類: string?
デフォルト: 340px
名称: Footer
種類: RenderFragment?
名称: FooterStyle
種類: string?
名称: FooterText
種類: string?
名称: Header
種類: RenderFragment?
名称: HeaderStyle
種類: string?
名称: HeaderText
種類: string?
反応してください ブレイザー

SectionColumn クラス

パラメータ

名称
種類
デフォルト
概要
BorderVisiblebool
True
ChildContentRenderFragment?
ColumnContentOrientationComponentOrientation
Vertical
FooterRenderFragment?
FooterTextstring?
HeaderRenderFragment?
HeaderTextstring?
HorizontalGapint?
10
VerticalGapint?
10
Widthdouble?
名称: BorderVisible
種類: bool
デフォルト: True
名称: ChildContent
種類: RenderFragment?
名称: ColumnContentOrientation
種類: ComponentOrientation
デフォルト: Vertical
名称: Footer
種類: RenderFragment?
名称: FooterText
種類: string?
名称: Header
種類: RenderFragment?
名称: HeaderText
種類: string?
名称: HorizontalGap
種類: int?
デフォルト: 10
名称: VerticalGap
種類: int?
デフォルト: 10
名称: Width
種類: double?