I have some data- attributes that I put into a table row tag.
When I set the table to be a wijgrid the data- attributes are destroyed.
How do I keep wijmo from destroying these attributes?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When applying attributes on rows (
tr), they are simply ignored by the plugin (as you experienced), whatever they are (style, class, data…).It seems voluntary because the piece of code that would normally extract the attributes for the rows is commented in the plugin source.
In the method
readTableSection, we have (i removed the not relevant lines of code in here):I have made a test with “data-” attributes on
tdelements and they are not destroyed.Note: you have to use the option
readAttributesFromData.You may contact the company who develops this plugin to ask why they have commented out this line.