Closed ayuda-darma closed 2 years ago
You can change the order in two ways:
editProperties
, listProperties
, showProperties
, filterProperties
, e. g.: editProperties: ['Player_name', 'Player_number']
- https://docs.adminjs.co/ResourceOptions.html#editPropertiesposition
attribute for specific properties in resource options:
https://docs.adminjs.co/PropertyOptions.html#position
module.exports = {
resource: Player,
options: {
properties: {
Player_name: { position: 1 },
Player_number: { position: 2 },
}
}
}
Let me know if you still have any troubles and I'll reopen.
I have a problem trying to populate the database because the order is reversed
i created the model Player_name, and Player_number In mySQL database in order
but in adminpanel create, the order is reversed to