我有一个Vaadin 14应用,该应用创建了一个HTML页面,其中包含多个“
我尝试过使用“ :: before”:
count,value
我也尝试过
#if count type is not int then cast to array<int>
df.agg(to_json(map_from_arrays(collect_list(col("Value")),collect_list(col("Count")).cast("array<int>"))).alias("json")).\
show(10,False)
#if count type int then no need to casting
df.agg(to_json(map_from_arrays(collect_list(col("Value")),collect_list(col("Count")).cast("array<int>"))).alias("json")).\
show(10,False)
#+------------------------------+
#|json |
#+------------------------------+
#|{"Blue":10,"Green":5,"Red":21}|
#+------------------------------+
#get as string
df.agg(to_json(map_from_arrays(collect_list(col("Value")),collect_list(col("Count")).cast("array<int>"))).alias("json")).collect()[0][0]
#or
df.agg(to_json(map_from_arrays(collect_list(col("Value")),collect_list(col("Count")).cast("array<int>"))).alias("json")).collect()[0]['json']
#{"Blue":10,"Green":5,"Red":21}
根据Chrome开发者模式,此样式永远不会应用于vaadin-button-container。
这个CSS选择器东西让我发疯了!
答案 0 :(得分:1)
这应该有效。
.vaadin-button-container::before {
justify-content: flex-start; }
请删除空间并尝试。.