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