Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ All options that should not be provided directly as data-attributes of the table
| Option | Type | Default |
| -------------------------- | ------ | ------------------------------- |
| tableClassNames | string | "table table-stripped table-sm" |
| enableCheckbox | bool | true |
| enableCheckbox | bool | false |
| bulkUrl | string | "" |
| bulkActionSelectClassNames | string | "form-control" |
| bulkActions | array | [ ] |
Expand Down
4 changes: 1 addition & 3 deletions assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,9 @@ $(function () {
const $bulkForm = $("#bulk_form_" + tableName);
$bulkForm.submit(function (e) {
const selectedRows = $table.bootstrapTable("getSelections");
const hidden = $table.find("bulk_form_" + tableName + " input[type=hidden]");
const hidden = $("#bulk_form_" + tableName + " input[type=hidden]");
hidden.val(JSON.stringify(selectedRows));
});
});


}
});
2 changes: 1 addition & 1 deletion src/HelloBootstrapTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ protected function configureTableOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'tableClassNames' => 'table table-striped table-sm',
'enableCheckbox' => true,
'enableCheckbox' => false,
'bulkUrl' => '',
'bulkActionSelectClassNames' => 'form-control',
'bulkActions' => array(),
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/bootstrap-table.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Twig/BootstrapTableTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class BootstrapTableTwigExtension extends AbstractExtension
{
const ASSET_VERSION = "0.3.3";
const ASSET_VERSION = "0.3.4";

/**
* {@inheritdoc}
Expand Down