javascript - 为什么 bootstrap-table 中的 showButtonIcons 不起作用
问题描述
为什么 showButtonIcons 不起作用?我希望看到文本而不是按钮图标,但并非所有图标都隐藏,示例按钮全屏和列。我将 showButtonIcons 设置为 false,将 showButtonText 设置为 true。我还包括来自 cdn 的 js 文件
<script>
$table = $('#table')
$table.bootstrapTable({
url: '{{ route("dataBudgets") }}',
locale: 'ru-RU',
search: 'true',
advancedSearch: 'true',
pagination: 'true',
showRefresh: 'true',
showFullscreen: 'true',
showColumns: 'true',
showColumnsToggleAll: 'true',
buttons: buttons(),
buttonsAlign: 'left',
showButtonIcons: 'false',
showButtonText: 'true',
buttonsOrder: ['create', 'advancedSearch', 'clearSearch', 'refresh', 'exportExcel', 'fullscreen', 'columns'],
});
function buttons() {
return {
create: {
text: 'Создать',
event: function () {
alert(1)
},
attributes: {
title: 'Добавить пользователя'
}
},
clearSearch: {
text: 'Сбросить',
event: function() {
alert(1)
},
attributes: {
title: 'Сброс поиска'
}
},
exportExcel: {
text: 'Excel',
event: function() {
alert(1)
},
attributes: {
title: 'Выгрузка файла'
}
}
}
}
</script>
解决方案
推荐阅读
- javascript - 仅在提示答案正确后才显示 H1 Javascript
- docker - Golang 的 Delve 找不到位于父文件夹中的包
- php - 使用准备好的语句清理插入
- r - 如何加快代码执行双重求和
- mysql - 如何计算一个表中所有唯一 ID 总和与另一表中所有唯一 ID 总和在特定时期的每一天的百分比?
- android - 为什么 Firebase childEventListener 不能与一个引用一起工作而与另一个引用一起工作?
- ios - 从 pdf 数据中提取单个页面(或页面范围)而不加载整个 pdf(有时会占用太多 RAM)
- ios - Firebase 数据库 Permission denied 使用 swift 4.2 面临的错误
- containers - Service Fabric Container API 未在端点上加载
- bash - expr 和 if 在 bash