i am using Grocery CRUD Enterprise v3.0.10 , with CodeIgniter 4
i think there a bug when trying to make column invisible.
$crud->fieldTypeColumn(‘requiredDate’, ‘invisible’); not working the column still shown.
also $crud->fieldType(‘requiredDate’, ‘invisible’); also not working…
i think also on the example on the documentaion it is show the column (attached the snapshot)
You are right, I can reproduce the issue and this is a bug. I will try to fix it for the next version (3.0.11). For now as a work-around please use unsetColumns | Grocery CRUD v3 if you want to just remove some columns from the datagrid.
Please let me know if after removing your localStorage cache fixed the problem.
The difference between ‘invisible’ and ‘hidden’ is that ‘invisible’ is actually a field that is getting into the response of the API that Grocery CRUD is using. The frontend though is hiding it. For example it can be used for JavaScript callbacks.
On the other hand ‘hidden’ is not displayed at all in the API calls but it can be used for callbacks. For example to use it in callbackColumn | Grocery CRUD v3 or it can be used in callbackInsert where you would like to add insert a field that is not in the form.
If this confuses you, in short, more or less ‘invisible’ and ‘hidden’ for the user is exactly the same.
only when I’m trying different things without keep clearing the cache every time.
any drawbacks other then not keeping column widths/visibility/filters between refresh?
You can add the configuration remember_state_upon_refresh to false and there will be no cache at all. Very good for development. If this is to false then in every refresh it will not store any data like filtering/columns/ordering… e.t.c.