JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Basic Tabs - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.min.js"></script>
<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script>
<script type="text/javascript">
var charts = angular.module('charts', []);
charts.directive('easyuiTabs', function(){
return {
restrict: 'AE',
link: function(scope, elem, attrs){
$(elem).tabs({
border: true,
onSelect: function(title){
alert(title + ' is selected');
}
});
$(elem).tabs('add', {
title: 'New Tab',
content: 'Tab Body',
closable: true,
tools: [{
iconCls: 'icon-mini-refresh',
handler: function(){
alert('refresh');
}
}]
})
}
}
})
</script>
</head>
<body ng-app="charts">
<h2>Basic Tabs</h2>
<div style="margin:20px 0 10px 0;"></div>
<div easyui-tabs style="width:700px;height:250px">
</div>
</body>
</html>