I have the following table which filled in this way, I data users returns. To this table I must add a new column calling the actions and this column goes for each record that is in table 2 buttons of which should make the call to a modal via ng-click, it is possible, the modal will allow me to edit User information

<div class="panel-body">
    <script type="text/javascript">
        jQuery(document).ready(function($)
        {
            $("#example-1").DataTable({
                "ajax": {
                "url": "http://162.243.105.163/proyect/public/ws/users",
                "dataSrc": "records"
                },
                "columns": [
                    { "data": "id" },
                    { "data": "name1" },
                    { "data": "lastname1" },
                    { "data": "user" },
                    { "data": "idusertype" },
                    { "data": "gmail" }
                ]
            });
        });
    </script>               
    <table id="example-1" class="table table-striped table-bordered " cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>#</th>
                <th>Name</th>
                <th>Last Name</th>
                <th>User</th>
                <th>User Type</th>
                <th>Gmail</th>
            </tr>
        </thead>
        <tfoot>                             
            <tr>
                <th>#</th>
                <th>Name</th>
                <th>Last Name</th>
                <th>User</th>
                <th>User Type</th>
                <th>Gmail</th>
            </tr>
        </tfoot>
    </table>
</div>
share|improve this question
    
You should look at angular-datatables -> l-lin.github.io/angular-datatables/archives/#!/welcome – davidkonrad Apr 1 at 8:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.