Tooltip on action buttons
See original GitHub issueHello I’ve like to add tooltips using angular-material too action buttons. However these seems not to be working. There is a problem, probably with sanitizing html. In console i have “WARNING: sanitizing HTML stripped” Would be great for any help or assists. Thank you
actions: {
add: false,
columnTitle: "Opcje",
custom: [
{
name: 'view',
title: '<i mdTooltip="Tooltip!" class="fa fa-info-circle fa-lg bigger-space"></i>'
}
]
},
edit: {
confirmSave: true,
editButtonContent: '<i class="fa fa-2x fa-pencil"></i>',
saveButtonContent: '<i class="fa fa-2x fa-save"></i>',
cancelButtonContent: '<i class="fa fa-2x fa-window-close"></i>',
} ,
delete: {
confirmDelete: true,
deleteButtonContent: '<i mdTooltip="Usuń" class="fa fa-2x fa-trash"></i>'
} ,
Issue Analytics
- State:
- Created 6 years ago
- Comments:17
Top Results From Across the Web
Tooltip - Components
Secondary buttons have lower priority in tooltips and they allow users to access useful content. Secondary buttons may not be provided unless there...
Read more >Tool Tips over Action Buttons? - Google Cloud Community
Here's a little trick to get the name of an action so that you can find it more easily in the editor: [Action...
Read more >Use action button tooltips
Use action button tooltips ... Action buttons can have a tool tip defined in the AXVW: <action> ... <tooltip>Approve the current project</tooltip>
Read more >Tooltip for Buttons or Images - Microsoft Power BI Community
Both buttons and images have tooltips already. You must first turn on "action", then you will see the tooltip option.
Read more >Tooltips on action buttons? - Feature Requests - Retool Forum
To save space, our action buttons are all emojis. But, that means that no one knows what the hell they do... Is there...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Follow the doc example to implement the custom component. https://akveo.github.io/ng2-smart-table/#/examples/custom-editors-viewers
The button example one for instance: https://github.com/akveo/ng2-smart-table/blob/master/src/app/pages/examples/custom-edit-view/basic-example-button-view.component.ts
Add your popover or tooltip in the component template
And you are basically done.
Rendering a component works perfectly in a column:
But the declaration simply does not work in a custom action:
@somq Am I missing something or is this a bug?