基本レイアウト

FlexLayout + FlexLayoutContainerの最も基本的な構成ルールです。


基本構造

FlexLayoutは一つの方向(row/column)を持つ分割レイアウトで、子要素は FlexLayoutContainerで構成されます。Fragmentの場合はフラット化して再処理しますが、できるだけ実際のパネル単位は常にcontainerNameを持つコンテナで保持するのが安全です。

tsx
<FlexLayout layoutName="workspace" direction="row">
  <FlexLayoutContainer containerName="workspace-left" isResizePanel>
    <LeftPanel />
  </FlexLayoutContainer>

  <FlexLayoutContainer containerName="workspace-main">
    <MainPanel />
  </FlexLayoutContainer>
</FlexLayout>

layoutName / containerNameルール

layoutName

레이아웃 단위의 고유 이름입니다. resize memory, container ref store, split screen store가 이 이름을 기준으로 묶입니다.

containerName

각 패널의 고유 이름입니다. open/close, double click, size observe, drag/drop target 식별에 사용됩니다.

direction

row는 좌우 분할, column은 상하 분할입니다.

入れ子レイアウト

一つの画面で左右分割の中に上下分割を再度入れたい場合は、コンテナ内部に別の FlexLayoutを入れます。各レイアウトの layoutNameは互いに異なる必要があり、storeの衝突を避けることができます。

tsx
<FlexLayout layoutName="root" direction="row">
  <FlexLayoutContainer containerName="root-nav" isResizePanel>
    <Navigation />
  </FlexLayoutContainer>

  <FlexLayoutContainer containerName="root-content">
    <FlexLayout layoutName="content" direction="column">
      <FlexLayoutContainer containerName="content-editor" isResizePanel>
        <Editor />
      </FlexLayoutContainer>
      <FlexLayoutContainer containerName="content-console">
        <Console />
      </FlexLayoutContainer>
    </FlexLayout>
  </FlexLayoutContainer>
</FlexLayout>
© 2026 Byeolnaerim. 無断転載を禁じます。紹介プライバシーポリシー