Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

easyui datagrid tabs

// you can use this code   
// Example HTML
<a href="javascript:void(0);" onclick="addTab('Your Profile','http://localhost/youproject/profile')">Profile</a>

<script>
function addTab(nmMenu, url) {
            index++;
            if ($('#tt').tabs('exists', nmMenu)) {
                $('#tt').tabs('select', nmMenu);
            } else {
                $('#tt').tabs('add', {
                    title: nmMenu,
                    href: url,
                    closable: true
                });
            }
   }

</script>
 
PREVIOUS NEXT
Tagged: #easyui #datagrid #tabs
ADD COMMENT
Topic
Name
2+4 =