Skip to content

Row decorators with conditions#50

Open
rodrigo-martinez wants to merge 3 commits intodudapiotr:masterfrom
rodrigo-martinez:master
Open

Row decorators with conditions#50
rodrigo-martinez wants to merge 3 commits intodudapiotr:masterfrom
rodrigo-martinez:master

Conversation

@rodrigo-martinez
Copy link
Copy Markdown

The renderer of rows is not validating the conditions before calling the decorator. As in the rendered of Cells, an if is needed who ask for the validConditions before calling the decorator.

Beside this, when added a ClassDecorator with conditions, the decorator adds the new class to the class attribute of row, so after that the class is added for every next rows. I don't know the best way to fix this, in the code, I added at the begining of the foreach an assigment to reset the class value.

@rodrigo-martinez
Copy link
Copy Markdown
Author

I found the addVarClass that is cleaned after each row rendered. So changing de ClassDecorator instead of using de addClass use the addVarClass

@fzipi
Copy link
Copy Markdown

fzipi commented Apr 28, 2015

This change seems useful, could it be merged?

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.

2 participants