Quantcast
Viewing all articles
Browse latest Browse all 8372

RichTooltip in a Table

Hi all,

 

I'm trying to set up a sap.ui.table.Table where the cells in one particular column (links) would show a RichTooltip, the purpose is to have another link in the tooltip. Strangely, when I do that, the tooltip does not show any text, just the title and image, if there are any. When I do the same in a separate element, the whole tooltip is shown. The column looks like (I'm omitting the bindings to make it simpler)

 

        oTable.addColumn(new sap.ui.table.Column({
                label : new sap.ui.commons.Label({
                text : "Column header"
            }),
            template : new sap.ui.commons.Link({

                 text: "link text",

                 href: "http://www.sap.com",

                 tooltip: new sap.ui.commons.RichTooltip({text: "rich text"})

             })
        }));

 

Is it possible to make this work? I can of course add another column to the table that would show the second link but I thought it would be sort of cool to show it only when needed.

 

Cheers,

 

-- Micha


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>