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

adding new feature columns_align to set alignment for displayed columns #253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arif-rh
Copy link
Contributor

@arif-rh arif-rh commented Nov 20, 2013

New Feature columns_align()

Description :

This function used to set alignment for displayed columns

How to use:

columns_align take array as parameters. It should be column_name as a key and alignment_type as value.

Examples:

$crud = new grocery_CRUD();
$crud->columns('column1', 'column2', 'column3');
$crud->columns_align(array('column1' => 'center', 'column3' => 'right'));
....

that will produce:

column1 in center alignment
column2 in left alignment (default)
column3 in right alignment

See this:
flexigrid-column-align-right
flexigrid-column-align-center
datatables-column-align-right
datatables-column-align-center

I have add this example in examples file.

@arif-rh
Copy link
Contributor Author

arif-rh commented Dec 4, 2013

Hello @scoumbourdis, will you add this new feature on your next release?

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

Successfully merging this pull request may close these issues.

1 participant