<div style="position: relative;">
    <div style="position: absolute; top: 0; left: 0; z-index: 1">
        <vn-icon-button
            class="vn-pt-sm"
            icon="more_vert"
            ng-click="$ctrl.showSmartTable($event)">
        </vn-icon-button>
        <vn-popover
            class="modal-form"
            vn-id="smart-table"
            message="Fields to show">
            <tpl-body>
                <div class="vn-pa-md">
                    <vn-horizontal ng-repeat="field in fields">
                        <vn-check
                            vn-one label="{{titles[field]}}"
                            ng-model="tableConfiguration.configuration[field]">
                        </vn-check> 
                    </vn-horizontal>
                    <vn-horizontal>
                        <vn-button 
                            label="Save" 
                            ng-click="$ctrl.saveConfiguration(tableConfiguration)">
                        </vn-button>
                    </vn-horizontal>
                </div>
            </tpl-body>
        </vn-popover>
    </div>
</div>