titleAttr not showing tooltip for the datatable button
titleAttr not showing tooltip for the datatable button
sarath_datatables
Posts: 16Questions: 8Answers: 0
Hello Team
i had tried **titleAttr **for the buttons and not able to achieve tool-tip for the button.
code is:
dom: 'Bl<"toolbar">frtip',
buttons: [
{
extend: 'colvis',
text: 'Customize View',
collectionLayout: 'two-column',//to make the menu apear center add "fixed two-column'
titleAttr: "Choose which properties you would like to see in the table by selecting them within this menu by a click"
},
{
extend:'colvisRestore',
text:'Default View'
},
{
extend: 'collection',
text: 'Export',
titleAttr: 'Export the overview table with the chosen properties to different formats. For possible used Constants check /xyz Table',
buttons: [
{
text: 'EXCEL',
},
{
text: 'CSV',
},
{
text: 'PDF',
},
]
}
],
This discussion has been closed.
Answers
Hi @sarath_datatables ,
Yep, that's the correct way to do it, see the example here. Is your CSS affecting it perhaps, may be not allowing it into the foreground? We can take a look if you want to link to a page or test case.
Cheers,
Colin
hi colin
thanks for quick response.
im sorry link cannot be shared as it is local and code for css is shared below.
i had overridden the css for column visibility . please check the code below for css:
Hi again,
I just tried your CSS in my example, and it's still working as expected, so I'm wondering if there's some other CSS interacting with it, something that wants to keep the foreground?
Sorry if I seem vague, but without seeing a live example, it's mostly guesswork with CSS.
Cheers,
Colin