[英]PrimeNg persist column resize state in localstorage
I 'm try to implement order,toggle,resize (Fit Mode) feture on primeng table so far order and toggle update selectedColumns
array so if I save the current value of it I manage to save current user setting like toggle,order. 到目前为止,我正在尝试在priming表上实现order,toggle,resize(调整模式)功能,并切换update
selectedColumns
数组,因此,如果我保存它的当前值,则可以保存当前用户设置,如toggle,order。
my problem with resize primeng doesn't give any information about the new value of columns after resize so I couldn't find any way to get the current state of resize and save it like order and toggle. 我的大小调整Primeng问题在调整大小之后没有提供有关列的新值的任何信息,因此我找不到任何方法来获取调整大小的当前状态并将其保存(例如顺序和切换)。
Thanks 谢谢
Primeng 7 introduce a state
feature for TurboTable (p-table) component, to setup state
simple set stateStorage property to local along with the state key; Primeng 7引入
state
为TurboTable(对表)成分的特征,设置state
组简单stateStorage属性当地与状态密钥一起;
<p-table [columns]="selectedColumns" stateStorage="local" stateKey="state01"
[value]="carsData" [reorderableColumns]="true" [resizableColumns]="true">
....
</p-table>
Currently supported features that can be stateful are; 当前支持的可能是有状态的功能包括:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.