Skip to content

samuelsantosdev/TableEdit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

MIT Licence

TableEdit

Online example

https://samuelsantosdev.github.io/TableEdit/

How to

<script src="js/tableEdit-0.1.js"></script>

<!-- load plugin for element -->
<script>
$(function(){
        $("#tableEdit").tableEdit({
                    columnsTr: "2,3", //null = all columns editable
                    enableDblClick: true, //enable edit td with dblclick
                    callback: function(e){
                        console.log(e.city);
                        console.log(e.age);
                        /*
                         * code for ajax
                         */
                    }, 
                    activeMasks: function(){
                       console.log("function enable masks");
                       /*
                        * function for active masks
                        */
                    }
                });
})
</script>