Page 1 of 1

User defined css functions

Posted: Thu Nov 05, 2015 1:02 pm
by Patrik
Hi,

oXygen already provides several custom css functions, but there are special cases where I'd like to call my own java methods. I know I can implement my own StylesFilter but this has two disadvantages:
1. I have to implement the java code for selecting the right node as well (which is easier in css).
2. The css becomes even more complicated with some hidden logic. Placing the function call in the css would be more easy to understand - especially with the css inspector.

So maybe you could provide an extension point to register my own custom css functions!?

Thanks and regards,
Patrik

Re: User defined css functions

Posted: Thu Nov 05, 2015 4:12 pm
by alex_jitianu
Hi Patrik,

I agree, it's a lot easier to identify a node through a CSS selector and having all the rules in one place helps with the maintenance. As a side note, the CSS inspector will present in the Computed tab the rules that come from the StylesFilter too (you have no hint that they come from a StylesFilter though).

I will add a feature request to have an extension point for custom CSS functions.

Best regards,
Alex

Re: User defined css functions

Posted: Fri Nov 06, 2015 10:02 am
by Patrik
Thanks Alex.

Patrik