User defined css functions

Are you missing a feature? Request its implementation here.
Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

User defined css functions

Post 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
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: User defined css functions

Post 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
Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Re: User defined css functions

Post by Patrik »

Thanks Alex.

Patrik
Post Reply