User defined css functions

Are you missing a feature? Request it's implementation here.
Patrik
Posts: 228
Location: Hamburg/Germany

User defined css functions

Thu Nov 05, 2015 1:02 pm

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: 649

Re: User defined css functions

Thu Nov 05, 2015 4:12 pm

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: 228
Location: Hamburg/Germany

Re: User defined css functions

Fri Nov 06, 2015 10:02 am

Thanks Alex.

Patrik

Return to “Feature Request”

Who is online

Users browsing this forum: Radu and 3 guests