Applying markdown to bound tag value in perspective

Is my css injection trick already considered classical? xD

If you're on ignition 8.1.21 (I think ?) or above, there's a style sheet you can use for this kind of things.
It's cleaner than an injection, but it lacks the "unicity" of style classes: a style class is an element that contains styles, that will be applied to the components that receive that style class.
The style sheet, on the other hand, is just a blank page on which you can write css.

You might be responsible for the addition of the style sheet ;p
Let's hope we get a js sheet before the markdown hack becomes a standard...

3 Likes

Haha yes, im affraid this one will be less likely than the stylesheet addition.
Adding js on a view base is just never gonna be clean. And in a global scale it is just gonna be it to hard to use for anything view related.

I thought putting it in the style sheet would apply it to the whole project, so I didn't try that. I just want it on certain views.

You can still target specific components with the style sheet.
Either using a class, which you can assign through props.style.classes, useful if you want to use the same style on several components,
Or using an id, which can be assigned through the meta.domId property for specific targeting

If you're modifying the same pstyle, then you just need to end the current prop with a ; and add the extra props:

Eg in Background Image:

;-webkit-text-stroke: 2px teal; color: magenta
1 Like

That's good to know, I was a little frustrated with the way I had it since it appears to override the rest of the styles.