You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The following sample script is useful to transform a list that contains many action links into a single dropdown select box.

Place these codes in Userview Builder > Settings.

Custom Javascript
window.addEventListener('load', function () {

    $("tbody > tr").each(function(){
        actionLink = $("li.action-link-modal").clone();
        $(this).find("td.row_action a").each(function(){
            $(actionLink).find("ul").append( "<li>" + $(this).prop("outerHTML") + "</li>");
        $(this).find(".footable-last-column").append( actionLink );
        $(this).find(".footable-last-column .row_action_inner").remove();

}, false);
Sub Header
<li class="action-link action-link-modal dropdown" style="display: none; list-style: none; margin: 15px;">
    <a data-toggle="dropdown" class="btn dropdown-toggle waves-effect btn waves-button waves-float" aria-expanded="false">
	     <span class="caret"></span>
    <ul class="dropdown-menu">
Custom CSS .dropdown-menu {
    width: max-content;
    left: unset;
    right: 0;

.action-link .dropdown-menu {
    width: max-content;
    left: auto;
    right: 0;
  • No labels