I am attempting to conceal a column in ag-grid when viewing it on mobile devices.
For my vue.js application, I have tried using the code snippet below, but unfortunately, it is not functioning as expected.
{
headerName: "Action",
field: "action",
minWidth: 54,
suppressMovable: true,
editable: true,
hide : ( window.innerWidth < 786 ? true : false )
}
My intention is for this column to be hidden on mobile devices and visible on desktops. However, the output is perplexing. Upon initial loading of the page on both types of devices, the column visibility seems correct. But on mobile, some of the other columns' header titles are also hidden (only the headers). Additionally, when resizing from mobile to desktop, the desired column fails to appear, and vice versa when resizing from desktop to mobile, the required column does not hide as expected.