You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue need help, with MRT table V3.1 I have an action column in MRT table, that may display 1 or up to 6 icons depending on the table (row) data. I'd like to auto set the action column size like when 1 icon display size = 40 and 2 icons, size changes to 90 and so on ... I did try to set state like actionSize and define column like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello MRT devs,
I have an issue need help, with MRT table V3.1 I have an action column in MRT table, that may display 1 or up to 6 icons depending on the table (row) data. I'd like to auto set the action column size like when 1 icon display size = 40 and 2 icons, size changes to 90 and so on ... I did try to set state like actionSize and define column like this:
const [actionSize, setActionSize] = useState(40);
columns =[
...
header: '',
size:()=> actionSize,
...
]
when > 1 icon need to display do following:
let _actionSize = actionSize;
setActionSize(_actionSize + 50);
but the action column size was not updated when more icons display,
anyone can help & much appreciated
thanks
David
Beta Was this translation helpful? Give feedback.
All reactions