jQuery EasyUI API Chinese documentation - Tabs tabs/tabs_jquery
Tabs tabs/tabs
overrides defaults with $.fn.tabs.defaults.
特性
名称 类型 说明 默认值 width number Tabs 容器的宽度。 auto height number Tabs 容器的高度。 auto plain boolean True 就不用背景容器图片来呈现 tab 条。 false fit boolean True 就设置 Tabs 容器的尺寸以适应它的父容器。 false border boolean True 就显示 Tabs 容器边框。 true scrollIncrement number 每按一次tab 滚动按钮,滚动的像素数。 100 scrollDuration number 每一个滚动动画应该持续的毫秒数。 400 tools array 右侧工具栏,每个工具选项都和 Linkbutton 一样。 null 事件
名称 参数 说明 onLoad panel 当一个 ajax tab panel 完成加载远程数据时触发。 onSelect title 当用户选择一个 tab panel 时触发。 onBeforeClose title 当一个 tab panel 被关闭前触发,返回 false 就取消关闭动作。 onClose title 当用户关闭一个 tab panel 时触发。 onAdd title 当一个新的 tab panel 被添加时触发。 onUpdate title 当一个 tab panel 被更新时触发。 onContextMenu e, title 当一个 tab panel 被右键点击时触发。 方法
名称 参数 说明 options none 返回 tabs options。 tabs none 返回全部 tab panel。
Dependencies
panel
linkbutton
Usage example
Create tabs
1. Via tags Creating Tabs
Creating Tabs from markup is easier, we don’t need to write any JavaScript code. Remember to add the 'easyui-tabs' class to the
2. Create Tabs programmatically
Now we create Tabs programmatically, and we also capture the 'onSelect' event.
$('#tt').tabs({
border:false,
onSelect:function(title){
alert(title ' is selected');
}
});
Add new tab panel
// Add a new tab panel
$('#tt').tabs('add',{
title:'New Tab',
content:'Tab Body',
closable:true
});
Get the selected Tab
/ / Get the selected tab panel and its tab object
var pp = $('#tt').tabs('getSelected');
var tab = pp.panel('options').tab; / / Corresponding tab object

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Several Windows users have complained that when they try to access some websites on Google Chrome browser on their systems, they are unable to access the web pages. It also displays a message on the browser saying "The site cannot be reached" with error code ERR_ADDRESS_UNREACHABLE. There could be many potential reasons behind this issue, it could be due to website server issues, proxy server settings, unstable internet connection, etc. If you encounter similar problems, don't panic. After deeply analyzing the problem in this article, we got a bunch of solutions. Before proceeding, try the following workarounds: Try checking if the user is trying to access the site from other devices and there are no issues, then this

MSIAfterburner is an overclocking tool suitable for most graphics cards. Apart from that, you can also use it to monitor the performance of your system. But some users reported that MSIAfterburner is not working in Windows 11. This may be due to several reasons, which we discuss in the following sections. However, when this happens, it prevents you from changing the performance or monitoring it while playing the game. As expected, this poses a significant challenge to gamers. That’s why we’ve dedicated this tutorial to help you understand the issue and walk you through the most effective fixes for MSIAfterburned not working in Windows 11 issue.

One of the features that comes with Windows File Explorer is the preview pane, which displays a preview of the file you selected. This means you can view the contents of the file before opening it. The preview pane of File Explorer provides previews for different types of files such as Office-related documents, PDFs, text files, images, and videos. It usually works fine, but sometimes the file preview isn't available. Recently, many Windows 11 users have raised the issue that File Explorer’s preview pane is not working and they are unable to view file previews. Are you facing the issue of preview pane not working on your Windows computer? Then, continue reading this article. Here we have compiled a list of fixes that can help you fix

The operating system looks much better than its predecessor and has gamer-oriented features like AutoHDR and DirectStorage, but Valorant players have had some trouble launching the game. This is not the first issue faced by gamers earlier, Valorant not opening on Windows 11 is another issue plaguing them but we have covered the ways to fix it. Now it seems that Valorant players who switched to Windows 11 are facing issues due to Secure Boot and TPM2.0 services, which causes the game menu to only show an exit option while running. Many users are getting the VAN1067 error, but it shouldn't be a cause for alarm

This operation requires an interactive window station which is a rather strange bug. Software windows that allow users to interact with the app are not open, you need to enable them. This bug has been linked to the 2021 Printing Nightmare vulnerability. However, it continues to this day, affecting your computer and device drivers. Fortunately, it's easy to fix. Why does this error occur in the first place? Before describing how to fix this error, be sure to list the causes of this error. This way, you can take the necessary steps to ensure it doesn't happen again. Corrupted files are messing up your computer files – Corruption can be caused by a variety of reasons, from malware to power outages. It is recommended that you run an SFC scan. You have an overzealous antivirus app – antivirus software sometimes blocks

The latest version of the Opera browser includes a new automatic video popup feature. Using this feature, you will notice that the video will pop up automatically when you navigate to another tab in the browser. It has been noticed that this pop-up video can be resized and moved around the screen. When you navigate back to the Videos tab, it resumes and the floating window disappears. The video pop-up feature is useful for multitasking users who like to watch videos while working. However, not every Opera user will like this automatic video popup feature. If you are one of those Opera browser users who are annoyed by videos popping up every time you change tabs, then you have found the right post. Here we detail how to disable this popup in Opera

Almost every high-end game we play relies on DirectX to run efficiently. However, some users reported encountering the DirectX function GetDeviceRemovedReasonfailedwith followed by the error reason. The above reasons are not self-evident to the average user and require some level of research to determine the root cause and the most effective solution. To make things easier, we've dedicated this tutorial to this problem. In the following sections, we will help you identify the potential causes and walk you through the troubleshooting steps to eliminate the DirectX function GetDeviceRemovedReasonfailedwitherror. what causes

How to solve the problem of slow network speed in Windows 11? 1. Restart your computer Navigate to the desktop and press Alt+F4 to activate the "Shut down Windows" box. Click the drop-down menu and select Restart from the list of options. Next, click OK. For most problems you encounter in Windows 11, one of the most effective solutions is to simply restart your computer. If it is a background process or error that is causing the problem, restarting the operating system will eliminate it, thus fixing the error. After restarting the computer, check whether the network speed problem of Windows 11 is resolved. 2. Make sure the PC is within range of the router (Wi-Fi network) In the case of a wireless network, the farther the device is from the router, the slower the internet speed will be
