bricks/docs/ja/splitter.md
2025-11-19 12:30:39 +08:00

13 lines
911 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Splitter
コントロール機能ページ内に区切り線horizontal ruleを作成するもので、視覚的に異なる領域のコンテンツを分割するためによく使用されます。
タイプ:通常コントロール
親クラスコントロールbricks.JsWidget
## 初期化パラメータ
特別な初期化パラメータはありません。`bricks.JsWidget` から継承されるデフォルトのパラメータを使用します。コンストラクタ内で `super({})` を呼び出し、空の設定オブジェクトを使って親クラスを初期化します。
## 主なイベント
- **create**:コントロール作成時に発生。内部で `_create('hr')` メソッドを呼び出し、`<hr>` のDOM要素を生成し、それを `this.dom_element` に割り当てます。この要素が当該コントロールのルート要素となります。