We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63c0600 commit f93f440Copy full SHA for f93f440
1 file changed
options/detail-view.html
@@ -36,9 +36,15 @@
36
<script>
37
window.detailFormatter = (index, row) => {
38
const html = []
39
+ const columns = $('#table').bootstrapTable('getOptions').columns
40
+ const getTitle = key => {
41
+ const column = columns[0].find(column => column.field === key)
42
+
43
+ return column ? column.title : key
44
+ }
45
46
for (const [key, value] of Object.entries(row)) {
- html.push(`<p><b>${key}:</b> ${value}</p>`)
47
+ html.push(`<p><b>${getTitle(key)}:</b> ${value}</p>`)
48
}
49
return html.join('')
50
0 commit comments