Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIELDS] setFieldOrder() #10

Closed
tabacitu opened this issue May 10, 2016 · 3 comments
Closed

[FIELDS] setFieldOrder() #10

tabacitu opened this issue May 10, 2016 · 3 comments

Comments

@tabacitu
Copy link
Member

The programmer should have the ability to choose the order the fields, after the fact.

This function in Crud.php should be completed:
$this->crud->setFieldOrder(['field_1', 'field_2', 'field_3'], 'update/create/both');

@tabacitu
Copy link
Member Author

Then these need to be done too:

$this->crud->setColumnOrder(['column_1', 'column_2', 'column_3']);
$this->crud->setButtonOrder($stack, ['column_1', 'column_2', 'column_3']);

@tabacitu tabacitu added this to the 3.2 - maturity milestone Jul 28, 2016
@tabacitu
Copy link
Member Author

On second thought, the order is self-evident. You type the columns/fields in an order and that's the order they're shown.

I say... drop it like it's hot.

@tjventurini
Copy link

If you need to change the order or fields lateron you can simply remove or comment out the $this->crud->setFromDb(); so the fields are listed as used in the controller.

Thought that might help someone 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants