Hello, in this guide, I will show you how you can change the columns order in your admin app.
For that, I created a class called "customClass" with two columns called "number" and "string", as you can see below:
As you can see, the order of the columns is: "id", "number", "string", "Created At (UTC)" and "Updated At (UTC)".
I do not have anything against numbers, but I really prefer to see the "string" first. To change this ordination, I'll need to go to the menu (on the left, where my classes are listed), and go to "Custom Field" at "Admin App Settings":
You'll see a populated class, but, you don't need to worry, these registers help the admin's ordenation, let's keep focused to our original need.
In this class, you only need to add a new register (green button at the top). Then, this window will appear:
What I need to do now is set the class that I like to change the ordination, in my case, the "customClass".
The second step is set the Field, which will be the "string" column.
On the Title, I will type "string" (I don't want to change the column name).
On Sub Type, I will not put anything.
At "Is Table Hidden", "Is Form Hidden (JS)", "Is Required" and "Default Value", I will not change anything too.
Which will define my ordination will the Relevance. In this case, you need to know that it's set as ascending order, so, fieldset with the higher relevance number will be on the left. In my example, I'll set as 10.
Here are the object parameters:
Now, I just need to save it.
A new object in my "Custom Field" class has been created:
Lastly, I'll return to my "customClass" and see my results:
As you can see, the string column has been moved to the left (to the place that I planned to). :)
NOTE: Since it's saved on the database, the ordination will keep fixed even if you close your browser.
Also, if you wish to change the field's relevance, you only need to go to the "Custom Fields" and edit the register that you created.
I hope you've enjoyed this tutorial and if you have any feedback, please, don't hesitate to reach us on our website or email us, we'll be glad to hear from you!