angular material mat-button loses styling when I use [className] - angular-material2

I need to add a custom class to my mat-buttons. This class will be used by an automated testing tool. But when I add [className]="QA_myclass", I lose all material styling. How can get around this? Anyone know?

Answering my own question here. Use [ngClass] instead of [className].

Related

custom card component Vue.js + Vuetify

I found this card component example on the internet and would like to build something similar with Vuetify. I'd like to know what is the best/easiest way to approach this? Using default v-card and add custom elements/css inside.Or building the whole card with Vuetify gid?
You can recreate something similar with an outlined v-card with only a v-card-text child. The top section looks like an outlined v-alert with left border. Use v-row and v-col (col-auto on all) grid inside, with v-spacer for the whitespace after first column. Bottom section will also have the grid. You could also put the v-alert inside v-card-title for similar effect but I don't think the banner alert is appropriate as a "card title".
Vuetify is a Vue UI library that provides ready-to-use components saving the developer time. So if the components Vuetify makes available to you are fine out of the box, you're fine, otherwise there's nothing wrong with adding custom CSS. In reference to the screenshot you attached, vuetify allows you to make that card in a practically identical way. In addition to studying the functioning of the basic components, I recommend that you take a look at the ready-made CSS classes that Vuetify provides you. Thanks to those you can do a lot of things. I hope I was helpful.

How to add SPAN class and Style to selected Text in CKEditor 5?

I have developed new Plugin 'Small Caps' in CKEditor5. Basically, it should add span class or style as {'font-variant': 'small-caps'}.
I am trying with different editor methods, however, I am not able to find anything which can fulfill my requirement.
Does anyone know how can I achieve this? Do I need to make custom command class? Which API would add span attribute with css class or styleset?
We've created a plugin for this purpose:
https://github.com/HCESrl/ckeditor5-small-caps
I hope it helps!

mvc 3 assign class for all textboxes

how do I assign class for all textboxes created using textboxfor?
Is there a way using a template override?
I know there are template overrides by type, but I don't want to target a particular type. I want to add a rounded-corner css class to all textboxes.
I don't see a reason why MVC need to be in charge of rounding the text boxes. It would be much easier just to use CSS with a .input[type=textbox].
CSS:
input[type="textbox"]{border-radius: 0.5em;}
Adding a css rule(s) would be the best option for this, but if you need to add a class, this may be easier to achieve with a startup script and jQuery than on the server side:
$(document).ready(function(){
$(":input[type=text]").addClass("foo");
});

TinyMCE: Automatic add style attribute on link creation

In TinyMCE, I need to add a in-line style attribute on link creation. The reason is that Google Mail doesn't support tags in a newsletter.
One solution can be "advlink". But who would explain to our user...that he must add css code in a new link...bad solution.
There must be a simpler, user-friendly way, but i can't find it. Is there an option that i can tell the plugin to add automatic style-attributes to a link?
//EDIT
Ok, i think another solution can be, if i can add anchor to 'style_formats'. But an anchor is not supported in 'style_formats'...someone has an idea?
You may write an own plugin which adds the inline style element to links.
An easier approch is to put the necessary code into the setup config paramter.

Question about VideoPlayer's skin VideoPlayerSkin

When I add a VideoPlayer control to my flex project, I didn't assign a skinclass to it. So, how does flashbuilder apply the VideoPlayerSkin.mxml to VideoPlayer?
Thanks for your reply.
If I understand your question correctly, inside your skin class, VideoPlayerSkin.mxml, you need the following:
<fx:Metadata>[HostComponent("components.VideoPlayer")]</fx:Metadata>

Resources