How to add a tab to the Fineui framework: fineui framework Tab

Source: Internet
Author: User

How to add a tab to the Fineui framework: fineui framework Tab

Add js Code to the F. ready (function () {...} method on the homepage

// Add the example tab window. addExampleTab = function (id, url, text, icon, refreshWhenExist) {// dynamically Add a tab // mainTabStrip: tab instance // id: tab ID // url: tab IFrame address // text: tab title // icon: tab icon // addTabCallback: callback function before the tab is created (the tabConfig parameter is accepted) // refreshWhenExist: When the tab is added, if the tab already exists, whether to refresh the internal IFrame F. util. addMainTab (mainTabStrip, id, url, text, icon, null, refreshWhenExist) ;}; // remove the Selected tab window. removeActiveTab = function () {var activeTab = mainTabStrip. getActiveTab (); mainTabStrip. removeTab (activeTab. id );};

Then write the js method on the page where you need to add tabs to the main framework.

Var basePath = '<% = ResolveUrl ("~ /") %> '; Function openHelloFineUI (id) {// alert (parent. addExampleTab); parent. addExampleTab. apply (null, ['Hello _ fineui_tab ', 'cafesmilewall/Comment. aspx? Id = '+ id + '', 'view comments', basePath + 'res/images/filetype/vs_aspx.png ', true]);}

Call the openHelloFineUI method in the event.

Webmasters of WeChat

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.