Customizing mat-checkbox [closed] - css

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I would like to change the angular material mat-checkbox checked icon. By default, the check icon is a white tick icon shown in a colored background box. What I need is a cross instead of tick (single problem, just show cross instead of tick when it is checked). The whole day searching, could not find a proper solution for that. Would be really appreciated for any ideas with sample codes. I am using Angular 10 and scss styling.
What I want to do

You can replace checkbox's default svg with any svg here.
Just you have to manipulate you dom.
Here is the minimal working example you can achieve
link
I have used document which is not recommended to manipulate dom in Angular.
You can check other methods for eg. renderer2, hostbinding, etc.

Related

SVG - Possible to use CSS's linear-gradient as fill? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
TLDR;
Is it at all possible to use CSS's linear-gradient() function to fill SVG elements? Any ideas of workarounds are welcomed too.
Basically I'm trying to make a templating system for simple graphs using Mustache. The user (another developer) should be able to change the style of the graphs using CSS.
However I quickly found out that SVG's fill attribute is not happy with CSS's linear-gradient() function. fill: linear-gradient(#000, #FFF); simply makes both Chrome and Firefox complain with Invalid property value. This means that the user will have to change the SVG DOM and add a <linearGradient> element, then refer to it in fill, if said user wants any gradient effect.
This is indeed achievable within my current templating framework, but I would prefer not to change the DOM if at all possible.
Any ideas?

how to text wrap the tooltip in ag-grid in angular 6 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
please click here to see the image
is there any way to wrap the text inside ag-grid in angular.in the image the tooltip is not fully visible since it is a long text. i tried using customTooltip but its not worked also i have tooltip for all columns as well
You need to create a custom cell renderer component using ICellRendererAngularComp
and pass that in your column definitions.

How to change the height and width of switch in kendo UI angular using css? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I am working with angular and Kendo ui.
How to change the height and width of switch button in kendo UI angular using css?
You can simply try this:
<kendo-switch [(ngModel)]="checked" style="height:50px; width:100px"></kendo-switch>
but I think the result is not what you really want.
So, try that as well:
<kendo-switch [style.transform]="'scale(0.9, 0.9)'" [(ngModel)]="checked"></kendo-switch>
and take a look at transform-scale to find out more info and modify the dimensions accordingly to achieve the desirable outcome.

How can I see the inside of the content box [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Hi I was wondering how can I see what is inside this box "" in the content in the style sheet
for example : I want to know the link of the image:
.facebookicon::before {
content: "";
}
Those square boxes usually mean that the Glyph that should be represented is missing from the character set of whatever program or font is being used to display the text. The only option is to attempt to open the file in another program.
Taking a rough guess it may be that the stylesheet your looking at is using a custom font and has created glyphs for various icons (this is done so that they will scale better on HiDPI screens) and assigned them to regions of the character set that is unused by normal fonts in order to avoid clashing.
In other words, It is highly unlikely there is an image.

How to create a texture paper background using CSS without image [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Is there a way to create a background using CSS without the image? with color, and texture?
As Dustin said, there's no "texture" CSS feature. however, if you're using CSS3, you can do some pretty cool tricks like gradients or shadowing to make some neat backgrounds.
No, there is no "texture". However if you find a color and could drop the texture then you can. I would just find a small image to repeat.

Resources