How add button in each rows of table

hi,

could you please help me to add button in each row of table.
i already googled, but i did not find any example.
please find in the below my html code.

<table class= "content-table" >
    
    
    
    <tr>
        <th><i class="nr-dashboard-warning" ></i>SourceName</th>
        <th>ReceiveTime</th>
        <th>Message</th>
        <th>Severity</th>
        
    </tr>
    {{#payload}}
    <tbody>
        <tr class="">
            <td><span>&#9888;</span> {{SourceName  }} <!--<a href= {{ SourceName  }} target="_blank">event details</a>-->   </td>          
            <td>{{ReceiveTime}}</td>
            <td>{{Message}}</td>
            <td class= "sev">{{Severity}} </td>
                        
        </tr>
    </tbody>
    {{/payload}}
</table>

thank you

Just a minute Let me google that for you

from the top result.

<table class= "content-table" >
    
    
    
    <tr>
        <th><i class="nr-dashboard-warning" ></i>SourceName</th>
        <th>ReceiveTime</th>
        <th>Message</th>
        <th>Severity</th>
        
    </tr>
    {{#payload}}
    <tbody>
        <tr class="">
            <td><a href="{{{SourceName}}}" target="_blank" style="text-decoration:none"><button id="event details">&#9888; Event Details</button></a></td>          
            <td>{{ReceiveTime}}</td>
            <td>{{Message}}</td>
            <td class= "sev">{{Severity}} </td>
                        
        </tr>
    </tbody>
    {{/payload}}
</table>

assuming SourceName is a URL

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.