当前位置:网站首页>Fastadmin changes the pop-up size of the default table button
Fastadmin changes the pop-up size of the default table button
2022-07-23 14:11:00 【Turbo97】
Core code
// Change the pop-up size of the top button
$(".btn-add").data("area", ["100%","100%"]);
$(".btn-edit").data("area", ["100%","100%"]);
// Change the default Edit button popup in the table ( Put it on var table = $("#table") Back )
table.on('post-body.bs.table',function(){
$(".btn-editone").data("area",["100%","100%"]);
})
The overall code
index: function () {
// Change the pop-up size of the top button
$(".btn-add").data("area", ["100%","100%"]);
$(".btn-edit").data("area", ["100%","100%"]);
// Initialization table parameter configuration
Table.api.init({
extend: {
index_url: '/index' + location.search,
table: 'table_name',
}
});
var table = $("#table");
// Change the default Edit button popup in the table
table.on('post-body.bs.table',function(){
$(".btn-editone").data("area",["100%","100%"]);
})
// Initialization table
table.bootstrapTable({
// code...
})
// Binding events for a table
Table.api.bindevent(table);
}
边栏推荐
- HCIA的复习
- BGP联邦实验
- How about the performance of Intel Celeron 7300? What level is it equivalent to
- 背包问题详解
- MGRE comprehensive experiment
- Rip experiment
- 【微信小程序】案例 - 本地生活
- Best practices of JD cloud Distributed Link Tracking in financial scenarios
- 达人评测 酷睿i9 12950hx和i9 12900hx区别哪个强
- How many processors is Tianji 820 equivalent to Xiaolong? How about Tianji 1100 equivalent to Xiaolong? How about Tianji 820
猜你喜欢

Overlayfs source code parsing

Review of HCIA

What is Tianji 920 equivalent to a snapdragon? How much is Tianji 920 equivalent to a snapdragon? How about Tianji 920

AppScan的安装与使用

BGP联邦实验

Is there a big gap between core i5 12490f and i5 12600K

Thousands of databases, physical machines all over the country, JD logistics full volume cloud live record | interview with excellent technical team

Medium range

Best practices of JD cloud Distributed Link Tracking in financial scenarios

背包问题详解
随机推荐
Thousands of databases, physical machines all over the country, JD logistics full volume cloud live record | interview with excellent technical team
Review of HCIA
rip的详细介绍
Script type=module
记一次Vulnhub靶机练习成功拿下root权限
Day 8 notes
考研题库小程序中如何实现打开考研思维导图pdf
笔记本酷睿i5 1135g7相当于什么水平?i5 1135g7性能怎么样
Where does pytorch work?
Swift 16进制字符串与UIColor互转
MySQL enables scheduled task execution
【百企行】牛耳教育助力高校访企拓岗促就业专项行动
Remember that a vulnhub target plane exercise successfully won the root permission
Kingbasees formatting function
Detailed introduction of RIP
Life essays: annoying projects in 2022
AppScan的安装与使用
How about the performance of Ruilong R7 Pro 5875u? What level is it equivalent to
How many processors is Tianji 820 equivalent to Xiaolong? How about Tianji 1100 equivalent to Xiaolong? How about Tianji 820
What level is rtx3090ti? What level is rtx3090ti graphics card? How about rtx3090ti graphics card