/** * @author zhixin wen * https://github.com/wenzhixin/bootstrap-table/ * theme: https://github.com/Semantic-Org/Semantic-UI */ $.extend($.fn.bootstrapTable.defaults, { classes: 'ui selectable celled table', buttonsPrefix: '', buttonsClass: 'ui button' }) $.BootstrapTable = class extends $.BootstrapTable { initConstants () { super.initConstants() this.constants.theme = 'semantic' this.constants.classes.buttonsGroup = 'ui buttons' this.constants.classes.buttonsDropdown = 'ui button dropdown' this.constants.classes.inputGroup = 'ui input' this.constants.classes.paginationDropdown = 'ui dropdown' this.constants.html.toobarDropdow = [''] this.constants.html.toobarDropdowItem = '' this.constants.html.pageDropdown = [''] this.constants.html.pageDropdownItem = '%s' this.constants.html.dropdownCaret = '' this.constants.html.pagination = [''], this.constants.html.paginationItem = '%s' } initToolbar () { super.initToolbar() if (this.options.showColumns) { this.$toolbar.find('.button.dropdown').dropdown() } } initPagination () { super.initPagination() if (this.options.pagination && !this.options.onlyInfoPagination) { this.$pagination.find('.dropdown').dropdown() } } }