- Home
- Forum
- Angular - EJ 2
- seeing html on hover for command
seeing html on hover for command
I have added an ellipse image,on hover i am seeing the html tag
How to avoid it?
<e-column width=50 [commands]='commands'></e-column>
this.commands = [{ buttonOption: { content: '<img class="" src="assets/img/ellipsis.svg"/>', cssClass: 'e-flat ellipse' } }];
SIGN IN To post a reply.
3 Replies
VS
Vignesh Sivagnanam
Syncfusion Team
August 2, 2021 12:18 PM UTC
Hi vin
Greetings from Syncfusion support
Based on your query, we understand that you have faced issue that the image tag is displayed as the tooltip of command button. To resolve the issue at your end, we suggest you to use the title property to provide custom tooltip to the EJ2 Grid command column buttons.
Please refer the below Code example and Documentation for your reference,
|
this.commands = [
{
title: 'Image',
buttonOption: {
content:
'<img style="width:30px;height:30px" src="https://user-images.githubusercontent.com/263237/36633897-d3237f2e-19ad-11e8-960a-daaf5ca3088a.png">',
cssClass: 'e-flat ellipse'
}
}
]; |
Please get back to us for further assistance,
Regards
Vignesh Sivagnanam
VI
vin
August 3, 2021 02:34 AM UTC
Is there a way to disable the click and show the icon as disabled?
I am using the command button
{ type: 'Delete', buttonOption: { cssClass: 'e-flat', iconCss: 'e-delete e-icons' } },
VS
Vignesh Sivagnanam
Syncfusion Team
August 4, 2021 01:47 PM UTC
Hi vin
Thanks for the update
Based on your query, you want to disable the button and click event of the button. To achieve your requirement, we suggest you to use the external css to disable the button and click event. You can use the below code example to achieve your requirement at your end.
Please refer the below code example and Sample for your reference,
|
this.commands = [
{
type: 'Delete',
buttonOption: {
iconCss: 'e-icons e-delete',
cssClass: 'e-flat disable'
}
}
];
|
|
<style>
.disable {
pointer-events: none;
opacity: 0.5;
}
</style> |
Please get back to us for further assistance,
Regards
Vignesh Sivagnanam
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
VI vin
- Aug 1, 2021 11:24 PM UTC
- Aug 4, 2021 01:47 PM UTC