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.
1.1 KiB
1.1 KiB
Tabular
表格形式的数据展现控件
widgettype值
Tabular
父类
bricks.VScrollPanel
构建参数
- "data_url":数据获取url,用来获取条目数据,返回数据须符合页数据要求
- "data_method":数据获取的方法缺省是“GET”
- "data_params",获取数据需要带的参数
- "cache_limit",缓存数据页数
- "page_rows",每页数据条数
- "row_cheight":每条目显示按字符大小为单位的高度
- "row_options":条目数据显示控件的构建参数,参数需要符合要求
- "content_view": 内容显示的控件描述,当用户点击条目后会在条目后面显示此控件描述生成的控件,在其中可以使用${name}的形式调用后台返回数据当前记录字段数据
row_options格式
- toolbar: 格式要求参看工具条
- fields:数组,数据字段说明,数组中每个数据要素请参看字段规范
- browserfields:条目显示字段约束,是一个字典类型数据
- editexclouded: 数组编辑是蓄意排除的数据字段名
方法
无
事件
无