bricks/dist/docs/ja/html.md
yumoqing 1291f7fee3 fix: UiCode build_options uses valueField/textField fallback to 'value'/'text'
When valueField/textField are not explicitly set in opts, the auto-select
logic (line 1140) and nullable empty-option creation (lines 1144-1145) used
data[0][undefined] which returned undefined, causing:
- Single-option selects to show blank (auto-select failed)
- nullable empty options to have undefined keys

Now extracts vf/tf local variables with ||'value'/||'text' fallback at the
top of build_options(), used consistently throughout.
2026-05-29 23:03:52 +08:00

21 lines
770 B
Markdown
Raw 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.

# Html
コントロール機能ページにカスタムのHTMLコンテンツを挿入するためのコントロールです。
タイプ:通常コントロール
親クラスコントロール:`bricks.JsWidget`
## 初期化パラメータ
- `html` (文字列)
コントロールに挿入するHTML文字列。この内容は、コントロールのDOM要素の`innerHTML`として設定されます。
例:
```js
new bricks.Html({
html: '<div style="color: red;">これは赤色のテキストです</div>'
});
```
## 主なイベント
特になし(`init``render`などの親クラスから継承された一般的なイベントは存在しますが、本コントロールでは特定のイベントは定義されていません)。