Skip to content

getSelections method need to unflat the data? #12

@wenzhixin

Description

@wenzhixin

data:

[
  {
    id: 1001,
    other: {
      name: "foobar"
    }
  },
  {...},...
]

table:

...
<table data-flat="true">
  <thead>
      <tr>
        <th data-field="other.name"></th>
      </tr>
var selected = $myTable.bootstrapTable('getSelections');
console.log('Selected', selected);

result:

[
  {
    id: 1001,
    other.name: "foobar"
  },
  {...},...
]

Ref: wenzhixin/bootstrap-table#1280

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions