Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Added support for row attributes and callable cell attributes. #3
Hi there, thanks for this library!
I've been using it for a while in a project I'm working on and have found it really useful, but came up with a requirement to customise the generated
First I tried creating a new class to extend it, but had problems due to the variables being declared private; so I forked it instead - you can see the changes here.
I updated test1.php example with some use cases - setting the 'class' and adding a data-id attribute based on row properties.
The way I achieved this - updating Properties class to support callables - also means that the attr() and css() calls for cells can also have values returned from callables.
Please feel free to merge if you find it useful!
I used your suggestions and added a development branch with the ideia. I have not implemented the callables feature but take a look and tell me what you think.
Hi, thanks for your reply!
I agree, I prefer that syntax and makes more sense that way. I think I was being cautious not to break compatibility too much, but this way is good. I've checked it out and like it how it works.
I've made some adjustments to support callable values which you can see in PR #4 .