As per Bootstrap Table documents, a data-field was created for TH but the data-field for TD is not in the document. Any idea about this?
$('#table').bootstrapTable({
url: 'data1.json',
pagination: true,
search: true,
columns: [{
field: 'id',
title: 'Item ID'
}, {
field: 'name',
title: 'Item Name'
}, {
field: 'price',
title: 'Item Price'
}]
})
The data-field could really just be considered the column name, and that is why it applies to TH.
Is there a problem you're attempting to solve concerning data-field and TD? With more context I'm happy to edit/update this answer.
Or, am I misunderstanding your question and you mean the columns do not have the names specified in
field?