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

how to set align (left, ...) on cell or column...? #79

Closed
thearabbit opened this issue May 18, 2014 · 4 comments
Closed

how to set align (left, ...) on cell or column...? #79

thearabbit opened this issue May 18, 2014 · 4 comments

Comments

@thearabbit
Copy link

I want to set align in cell, column ... (not in view)?

@MaatwebsiteSupport
Copy link
Contributor

$sheet->getStyle('A1')->getAlignment()->applyFromArray(
    array('horizontal' => 'center')
);

Shortcut will probably come in v1.1.0

@konohanaruto
Copy link

works for me, thanks.

@dendihandian
Copy link

@MaatwebsiteSupport How to achieve this in version 3?

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

5 participants