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

Add support for custom HTML elements in column header #116

Closed
janedbal opened this issue Apr 7, 2014 · 7 comments
Closed

Add support for custom HTML elements in column header #116

janedbal opened this issue Apr 7, 2014 · 7 comments
Labels

Comments

@janedbal
Copy link

janedbal commented Apr 7, 2014

I would like to do something like this:

$grid->addColumnText('col', Html::el("i")->class("icon-show"));

but I get error from translator trying to translate an object. Could you add support for this?

@o5 o5 added the INVALID label Apr 7, 2014
@o5
Copy link
Owner

o5 commented Apr 7, 2014

Second param $label must be string (like nette forms). You can use setCustomRender() if you want to change the table cell.

@o5 o5 closed this as completed Apr 7, 2014
@janedbal
Copy link
Author

janedbal commented Apr 7, 2014

Actually, this does work in nette forms, but thanks, setCustomRender makes more sense.

@o5
Copy link
Owner

o5 commented Apr 7, 2014

Sorry, you are right! I've never used something like this in nette forms.

@o5
Copy link
Owner

o5 commented Apr 7, 2014

I didn't understand you :)) Actually setCustomRender don't resolve your problem..

@o5 o5 reopened this Apr 7, 2014
@o5 o5 added FEATURE and removed INVALID labels Apr 7, 2014
@janedbal
Copy link
Author

janedbal commented Apr 7, 2014

And I didn't test it and trusted you :)

@o5 o5 closed this as completed in ddbc4ec Apr 7, 2014
@janedbal
Copy link
Author

janedbal commented Apr 7, 2014

Thx, you are very fast!

@o5
Copy link
Owner

o5 commented Apr 7, 2014

Easy features are fast implemented :)

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

No branches or pull requests

2 participants