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

Need to have hook point to allow "on demand" styling of items #17

Open
kikonen opened this issue Jan 8, 2020 · 1 comment
Open

Need to have hook point to allow "on demand" styling of items #17

kikonen opened this issue Jan 8, 2020 · 1 comment
Labels

Comments

@kikonen
Copy link
Owner

kikonen commented Jan 8, 2020

Should way of defining styling of items using config, via function.

i.e. function, which can determine dynamically what classes to apply to item.

Does not need to be fully dynamic (i.e. only support running it at item build time) for performance reasons (calling functions from render would be slow and cause that svelte cannot optimize render logic well).

@kikonen kikonen added the medium label Jan 13, 2020
@kikonen
Copy link
Owner Author

kikonen commented Jan 16, 2020

Will, for now, rely into item.item_class for this. I.e. not dynamic, but caller can setup styles at point of time when fetch is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant