I am not a developer, but I am trying to develop a function to see multi line texts in a sharepoint list with a scroll bar because it sometimes is so long that it makes the height of the column too high to look orgnized. I used the following JSOn script, and it indeed added a scroll bar but when I click the arrow to the top, I cannot see the first line of values. How can I make changes in my script to view entire values by scrolling up and down?
我不是一个开发人员,但我正在尝试开发一个功能,以查看一个带有滚动条的SharePoint列表中的多行文本,因为它有时太长,它使列的高度太高,看起来组织。我使用了下面的json脚本,它确实添加了一个滚动条,但当我单击顶部的箭头时,我看不到第一行值。如何在脚本中进行更改以通过上下滚动查看整个值?
{
"$schema":"http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"elmType":"div",
"style":{
"font-weight":"bold",
"font-family":"Trebuchet MS",
"font-size":"13px",
"font-size-adjust":"0.58",
"overflow-y":"auto",
"max-height":"50px"
},
"txtContent":"@currentField"
}
{“$schema”:“http://columnformatting.sharepointpnp.com/columnFormattingSchema.json”,“elmType”:“div”,“Style”:{“FONT-Weight”:“粗体”,“FONT-FAMILY”:“Trebuhet MS”,“FONT-SIZE”:“13px”,“FONT-SIZE-ADJUST”:“0.58”,“Overflow-y”:“Auto”,“max-Height”:“50px”},“txtContent”:“@Currentfield”}
更多回答
优秀答案推荐
I have solved my problem by adding one more script: "display": "block"
我已经解决了我的问题,添加了一个脚本:“Display”:“Block”
Thank you!
谢谢!
更多回答
我是一名优秀的程序员,十分优秀!