当前位置:网站首页>Fastadmin controls the length of fields in the table
Fastadmin controls the length of fields in the table
2022-07-02 01:18:00 【Flower frozen ice】
Fastadmin In the list display , If something like some fields, such as introduction or remarks , The content is too long , The whole display is a little unfriendly , Here is the limit length , Give me one width( Percentage or ps Will do ), Characters too long display …, Put the mouse on it to display all the contents .
{
field: 'des', title: __('Des'), operate:false,cellStyle:function (value,row,index,field) {
return {
css: {
"min-width": "150px",
"white-space": "nowrap",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width":"300px"
}
};
},formatter:function (value,row,index,field) {
var span=document.createElement('span');
span.setAttribute('title',value);
span.innerHTML = value;
return span.outerHTML;
}},```
边栏推荐
- Minimize the error
- DTL dephossite | prediction method of dephosphorylation sites based on Transfer Learning
- Look at the industrial Internet from a new perspective and seek the correct ways and methods of industrial Internet
- Zak's latest "neural information transmission", with slides and videos
- 一名优秀的软件测试人员,需要掌握哪些技能?
- Tencent cloud techo youth dream campus trip into Wuhan University
- How to compress video size while adding watermark with one click?
- Entrepreneurship is a little risky. Read the data and do a business analysis
- 【八大排序①】插入排序(直接插入排序、希尔排序)
- The 8-year salary change of testers makes netizens envy it: you pay me one year's salary per month
猜你喜欢

Develop a simple login logic based on SSM

学习笔记2--高精度地图定义及价值

XMind思维导图

【八大排序②】选择排序(选择排序,堆排序)
![[eight sorting ③] quick sorting (dynamic graph deduction Hoare method, digging method, front and back pointer method)](/img/c2/7ebc67e9b886e3baf3c98489bf9bce.png)
[eight sorting ③] quick sorting (dynamic graph deduction Hoare method, digging method, front and back pointer method)

Study note 2 -- definition and value of high-precision map

浅浅了解Servlet

What skills does an excellent software tester need to master?

About asp Net core uses a small detail of datetime date type parameter

6-3 vulnerability exploitation SSH environment construction
随机推荐
XMind思维导图
学习笔记24--多传感器后融合技术
Brief description of grafana of # yyds dry goods inventory # Prometheus
Global and Chinese markets for the application of artificial intelligence in security, public security and national security 2022-2028: Research Report on technology, participants, trends, market size
Keepalived introduction and installation
Global and Chinese market of avionics systems 2022-2028: Research Report on technology, participants, trends, market size and share
首场“移动云杯”空宣会,期待与开发者一起共创算网新世界!
[IVX junior engineer training course 10 papers to get certificates] 0708 news page production
Cat Party (Easy Edition)
Excel PivotTable
【八大排序③】快速排序(动图演绎Hoare法、挖坑法、前后指针法)
Look at the industrial Internet from a new perspective and seek the correct ways and methods of industrial Internet
Develop a simple login logic based on SSM
Global and Chinese markets of edge AI software 2022-2028: Research Report on technology, participants, trends, market size and share
How can programmers better plan their career development?
What are the differences between software testers with a monthly salary of 7K and 25K? Leaders look up to you when they master it
With the acquisition of Xilinx, AMD is more than "walking on two legs" | Jiazi found
关于ASP.NET CORE使用DateTime日期类型参数的一个小细节
[eight sorts ④] merge sort, sort not based on comparison (count sort, cardinal sort, bucket sort)
SSO single sign on implementation.