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

Set custom back ground color for each entry. #37

Open
samindaperamuna opened this issue Dec 3, 2017 · 1 comment
Open

Set custom back ground color for each entry. #37

samindaperamuna opened this issue Dec 3, 2017 · 1 comment

Comments

@samindaperamuna
Copy link

How can I use the data-color property or any other method to set the color if individual entries? I can get the value as data-color attribute. But I can't use it in the style attribute.

@baton4eg
Copy link

Use this (jquery)
$(document).ready(function () {
jQuery("a.time-entry").each(function() {
var background = jQuery(this).data("bgcolor"); //catching color
jQuery(this).css('background-color',background);//using it
});
});

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

2 participants