
    <div class="dropdown pull-right inventory-dropdown" id="dropdown-container" style="display:none; position:absolute; height:0">
        <a ng-click="$event.stopPropagation();" class="dropdown-toggle float-right" type="button" data-toggle="dropdown">
            <i class="bi bi-three-dots-vertical"></i>
        </a>
        <ul class="dropdown-menu">
           <li ng-show="UI">
                <a ng-click="openInsertColumnDialog()">
                    <div class="margin-right-small inline"><i class="bi bi-pencil-fill"></i></div>Edit columns
                </a>
            </li>
            <li ng-show="!UI" class="dropdown-submenu">
                <a ng-click="$event.stopPropagation();">
                    <div class="margin-right-small inline"><i class="bi bi-plus"></i></div>Insert column <i class="bi bi-caret-right-fill"></i>
                </a>
                <ul class="dropdown-menu">
                    <input type="text" ng-click="$event.stopPropagation();" ng-model="searchCats" placeholder="Search...">
                    <li class="addColumn" ng-repeat="item in filteredCols = (changesColumns | filter:searchCats | filter:colSelected:false)">
                        <a ng-click="$event.stopPropagation(); selectedCols.splice($parent.$index+1, 0, item)">{{item.label}}</a>
                    </li>
                </ul>
            </li>
            <li ng-show="UI.SELECT_HEADER_ARRAY[$index]['type'] != 'slist'">
                <a ng-click="setChartData(head.name,$index); $event.stopPropagation();"><div class="margin-right-small inline"><i class="bi bi-bar-chart-fill"></i></div>Chart data</a>
            </li>
            <li ng-if="UI"><a ng-click="$event.stopPropagation(); selectedCols.splice(selectedCols.indexOf(head.name),1)"><div class="margin-right-small inline"><i class="bi bi-trash"></i></div>Remove column</a></li>
            <li ng-if="!UI"><a ng-click="$event.stopPropagation(); selectedCols.splice($parent.$index,1)"><div class="margin-right-small inline"><i class="bi bi-trash"></i></div>Remove column</a></li>
        </ul>
    </div>
