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

Dynamic childClass #58

Open
dem1tris opened this issue Oct 15, 2020 · 5 comments
Open

Dynamic childClass #58

dem1tris opened this issue Oct 15, 2020 · 5 comments

Comments

@dem1tris
Copy link

dem1tris commented Oct 15, 2020

Hi! Is there a way to evaluate childClass dynamically for each item?
I want to color list' items depending on their state.

Also I use it in table, so childTagName is tr and I can't specify its style inside block

@lolmaus
Copy link
Owner

lolmaus commented Oct 16, 2020

Currently the addon does not support passing childClass on a per-item basis.

What kind of state do you want to indicate? There's already quite a number of HTML classes applied, reflecting all states of the draggable stuff.

@dem1tris
Copy link
Author

@lolmaus I'd indicate business logic' state, not related to its "draggability".

@lolmaus
Copy link
Owner

lolmaus commented Oct 17, 2020

Can you do it on a child element?

A graceful solution would require exposing the child element. This is a right thing to do but it takes a larger refactoring and a breaking change.

@dem1tris
Copy link
Author

I'm pretty new in frontend, so it's hard to invent something mostly because of restrictions made by surrounding table tag)
But I'll find a solution one way or another ¯_(ツ)_/¯

@lolmaus
Copy link
Owner

lolmaus commented Oct 17, 2020

Please show your template code.

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