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

Make adding resources and css classes easier #56

Open
Cito opened this issue Oct 2, 2012 · 0 comments
Open

Make adding resources and css classes easier #56

Cito opened this issue Oct 2, 2012 · 0 comments

Comments

@Cito
Copy link
Contributor

Cito commented Oct 2, 2012

TW 1 supported a css_classes parameter to add css classes in addition to css_class. TW 2 only has the css_class parameter which makes it difficult to add CSS classes to an existing parent class. You need to write something like css_class = ParentWidget.css_class + " another_class"in order to not overwrite an existing parent class.

A similar problem exists concerning the resources parameter. Usually you want to just add resources to a parent widget, not replace the parent resources completely.

Maybe we could add parameters like add_css_class and add_resources for this purpose? When using these parameters, the classes/resources would be just added to existing base classes/resources.

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

1 participant