Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node-sass version update + per_page_desc fix + include dist #96

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
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 .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.DS_Store
node_modules/
/dist/
#/dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
Expand Down
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@


# 0. How this repo differs from original as of September, 8th 2020
- Fixed issue with per_page_pesc locale string. In original repo this functionality was added by separate PR and applied only to card_mode. Also data() variable was not initialized
- MultiSelect filter here has following features: if filter.search_filter_input is set - render special input to filter options (easily find needed option in long list), completely rewritten MultiSelect - originally it uses indexes of options in array for work. Now we have array of selected objects (options) and do all finds by value attribute. filter.search_filter_input = { visibility: true, text: 'placeholder text' }
- That means that value attribute in options list is absolutely required.
- Also filter.init.value now has to contain value strings (values) instead of indexes as of in original repo. Values that are not found in options array are ignored
filter.init.value has to be array when it's multi mode, string if isSingleMode
- "Select all" checkbox on MultiSelect filter now has indeterminate state. Expected behavoir: if no option is selected "Select all" is unchecked; if all existing options are selected - it is checked; if some option(s) selected - checkbox is indeterminate. When user filters options and clicks "Select all" - only filtered options are selected leading to indeterminate checkbox state if there are unchecked filtered out options.
- Redesigned logic of footer and header in both modes (regular and card). Use following syntax to configure footer within config object
```vue
boxes: {
bottom: [
{ class: 'col-md-4', contents: ['pagination'] },
{ class: 'col-md-4', contents: ['pagination_info'] },
{ class: 'col-md-4 text-right', contents: ['selected_rows_info', 'selected_rows_action'] } // custom slot
],
top: [
],
}
```
We have some predefined content boxes: pagination, pagination_info, selected_rows_info, vbt-action-buttons, global_search, refresh_reset_buttons.
BREAKING CHANGE: slot in footer and header no receive only prop - data_object, which contains all previously known props
You can override them as you wish
Also see App.vue for example of disabling and enabling action buttons in footer

- New feature: if row object contains 'subrow_data' property, additional subrow (tr) will be rendered. subrow_data property can be subset of data or simply boolean just to indicate that we need subrow here. This subrow (tr) contains slot named "subrow" (receives row prop), which is rendering td with colspan columns.length+1, but can be easily overridden but specifing slot with another set of columns or the same <td :colspan="columns.length+1"> with any html markup inside (bootstrap columns wrapped in <td> for example)
- Expand/collapse subrow trigger is specified in table config as class name for any element you put inside your columns. Default is toggle_subrow element
- sticky_footer option in config. When sticky_footer: true & card_mode: true - footer becomes sticky



Expand Down
1 change: 1 addition & 0 deletions dist/vue-bootstrap4-table.esm.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/vue-bootstrap4-table.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/vue-bootstrap4-table.umd.js

Large diffs are not rendered by default.

Loading