Skip to content

Latest commit

 

History

History
4926 lines (3338 loc) · 167 KB

File metadata and controls

4926 lines (3338 loc) · 167 KB
layout post
title Properties, Methods and Events of ejTab Widget
description API reference for ejTab
documentation API
platform angular-api
keywords Tab, ejTab, syncfusion, Tab api

ejTab

The Tab control is an interface where list of items are expanded from a single item. Each Tab panel defines its header text or header template, as well as a content template. Tab items are dynamically added and removed. Tabs can be loaded with AJAX content that is useful for building dashboards where space is limited.

Example

{% highlight html %}

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

Requires

  • module:jQuery

  • module:jquery.easing.1.3.min.js

  • module:ej.core.js

  • module:ej.tab.js

Members

ajaxSettings object

{:#members:ajaxsettings}

Specifies the ajaxSettings option to load the content to the Tab control.

Example

{% highlight html %}

Pizza cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

Sandwich cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core'; import { ViewEncapsulation } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './tab.component.html', styleUrls: ['./tab.component.css'], encapsulation: ViewEncapsulation.None, }) export class ScrollTabComponent { dataType: any;

contentType: any;

async: any; cache: any; data: Object; type: any; constructor() { this.cache= false; this.data= {}; this.type= 'GET';

this.dataType= "html";

this.contentType= "html";

this.async= true; } }

{% endhighlight %}

The file ‘cornSpinach.html’ content is as follows.

{% highlight html %}

<div class="e-content">
    <img src="http://js.syncfusion.com/demos/web/images/accordion/corn-and-spinach-05.png" alt="corn-spinach"/>
    <div class="ingredients">
        Rate    : $70<br />
        Ingredients : cheese, sweet corn &amp; green capsicums.
            <br />
        Description: Small pizza bases are topped with spinach and Paneer and fresh cream, a nice layer of mozzarella cheese. This is baked until the cheese is all hot and gooey.                   
    </div>
</div>

{% endhighlight %}

The file ‘chickenDelite.html’ content is as follows.

{% highlight html %}

<div class="e-content">
    <img src="http://js.syncfusion.com/demos/web/images/accordion/chicken-delite.png" alt="chicken-delite"/>
    <div class="ingredients">
        Rate    : $100<br />
        Ingredients : cheese, chicken chunks, onions &amp; pineapple chunks.  
        <br />
        Description: This is a tasty, elegant chicken dish that is easy to prepare.
    </div>
</div>

{% endhighlight %}

ajaxSettings.async boolean

{:#members:ajaxsettings-async}

It specifies, whether to enable or disable asynchronous request.

Default Value

  • true

ajaxSettings.cache boolean

{:#members:ajaxsettings-cache}

It specifies the page will be cached in the web browser.

Default Value

  • false

ajaxSettings.contentType string

{:#members:ajaxsettings-contenttype}

It specifies the type of data is send in the query string.

Default Value

  • "html"

ajaxSettings.data object

{:#members:ajaxsettings-data}

It specifies the data as an object, will be passed in the query string.

Default Value

  • {}

ajaxSettings.dataType string

{:#members:ajaxsettings-datatype}

It specifies the type of data that you're expecting back from the response.

Default Value

  • "html"

ajaxSettings.type string

{:#members:ajaxsettings-type}

It specifies the HTTP request type.

Default Value

  • "get"

allowKeyboardNavigation boolean

{:#members:allowkeyboardnavigation}

Tab items interaction with keyboard keys, like headers active navigation.

Default Value

  • true

Example

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

collapsible boolean

{:#members:collapsible}

Allow to collapsing the active item, while click on the active header.

Default Value

  • false

Example

{% highlight html %}

<ej-tab id="tab" [collapsible]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

cssClass string

{:#members:cssclass}

Set the root class for Tab theme. This cssClass API helps to use custom skinning option for Tab control.

Default Value

  • ""

Example

{% highlight html %}

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core'; import {ViewEncapsulation} from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html', styleUrls: ['./tab.component.css'], encapsulation: ViewEncapsulation.None, }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

The css must be defined in stylesheet.

{% highlight ts %}

<style> .cssClass{ font-size: 20px; } </style>

{% endhighlight %}

disabledItemIndex number[]

{:#members:disableditemindex}

Disables the given tab headers and content panels.

Default Value

  • []

Example

{% highlight html %}

<ej-tab id="tab" [disabledItemIndex]="disabledItemIndex">

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent { disabledItemIndex: array; constructor() { this.disabledItemIndex = [1,2]; } }

{% endhighlight %}

enableAnimation boolean

{:#members:enableanimation}

Specifies the animation behavior of the tab.

Default Value

  • true

Example

{% highlight html %}

<ej-tab id="tab" [enableAnimation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

enabled boolean

{:#members:enabled}

When this property is set to false, it disables the tab control.

Default Value

  • true

Example

{% highlight html %}

<ej-tab id="tab" [enabled]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

enabledItemIndex number[]

{:#members:enableditemindex}

Enables the given tab headers and content panels.

Default Value

  • []

Example

{% highlight html %}

<ej-tab id="tab" [enabledItemIndex]="enabledItemIndex" [disabledItemIndex]="disabledItemIndex">

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent { enabledItemIndex: any; enabledItemIndex: any; constructor() { this.disabledItemIndex = [0,1]; this.enabledItemIndex = [0,1]; } }

{% endhighlight %}

enablePersistence boolean

{:#members:enablepersistence}

Save current model value to browser cookies for state maintains. While refresh the Tab control page the model value apply from browser cookies.

Default Value

  • false

Example

{% highlight html %}

<ej-tab id="tab" [enablePersistence]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

enableRTL boolean

{:#members:enablertl}

Display Right to Left direction for headers and panels text of tab.

Default Value

  • false

Example

{% highlight html %}

<ej-tab id="tab" [enableRTL]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

enableTabScroll boolean

{:#members:enabletabscroll}

Specify to enable scrolling for Tab header.

Default Value

  • false

Example

{% highlight ts %}

<

<ej-tab id="scrollTab" [enableTabScroll]="enableTabScroll" style='display: block'>

Pizza cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

Pasta cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

Sandwich cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

Burger cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

Spaghetti cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

Ramen cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core'; import { ViewEncapsulation } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './tab.component.html', styleUrls: ['./tab.component.css'], encapsulation: ViewEncapsulation.None, }) export class ScrollTabComponent { enableTabScroll:boolean; constructor() { this.enableTabScroll=true; } }

{% endhighlight %}

events string

{:#members:events}

The event API to bind the action for active the tab items.

Default Value

  • "click"

Example

{% highlight html %}

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

headerPosition string | enum

{:#members:headerposition}

Specifies the position of Tab header as top, bottom, left or right. See below to get available Position

Name Description
Top Tab headers display to top position
Bottom Tab headers display to bottom position
Left Tab headers display to left position.
Right Tab headers display to right position.

Default Value

  • "top"

Example

{% highlight html %}

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

headerSize string | number

{:#members:headersize}

Set the height of the tab header element. Default this property value is null, so height take content height.

Default Value

  • null

Example

{% highlight html %}

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

height string | number

{:#members:height}

Height set the outer panel element. Default this property value is null, so height take content height.

Default Value

  • null

Example

{% highlight html %}

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

heightAdjustMode string | enum

{:#members:heightadjustmode}

Adjust the content panel height for given option (content, auto and fill), by default panels height adjust based on the content.See below to get available HeightAdjustMode

Name Type Default Description
None string content Content panel take based on the height property.
Content string content Content panel will take height based on the content height.
Auto string auto All panel height will be set the tallest panel height
Fill string fill Content panel take based on the parent height

Default Value

  • "content"

Example

{% highlight html %}

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

hiddenItemIndex array

{:#members:hiddenitemindex}

Specifies to hide a pane of Tab control.

Default Value

  • []

Example

{% highlight html %}

<ej-tab id="tab" [hiddenItemIndex]="hiddenItemIndex">

<ul>
    <li><a href="#twitter">Twitter</a></li>
    <li><a href="#facebook">Facebook</a></li>
    <li><a href="#whatsapp">WhatsApp</a></li>
</ul>
<div id="twitter">
    Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets".
    Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world.
    Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
</div>
<div id="facebook">
    Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
</div>
<div id="whatsapp">
    WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers.
    As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application.
    WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
</div>

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent { hiddenItemIndex: array; constructor() { this.hiddenItemIndex= [0,1]; } }

{% endhighlight %}

htmlAttributes object

{:#members:htmlattributes}

Specifies the HTML Attributes of the Tab.

Default Value

  • {}

Example

{% highlight html %}

<ej-tab id="tab" [htmlAttributes]="htmlAttributes">

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent { htmlAttributes: Object; constructor() { this.htmlAttributes = {class:"my-class"}; } }

{% endhighlight %}

idPrefix string

{:#members:idprefix}

The idPrefix property appends the given string on the added tab item id’s in runtime.

Default Value

  • "ej-tab-"

Example

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

selectedItemIndex number

{:#members:selecteditemindex}

Specifies the Tab header in active for given index value.

Default Value

  • 0

Example

{% highlight html %}

<ej-tab id="tab" [selectedItemIndex]="selectedItemIndex">

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent { selectedItemIndex: any; constructor() { this.selectedItemIndex = 1; } }

{% endhighlight %}

showCloseButton boolean

{:#members:showclosebutton}

Display the close button for each tab items. While clicking on the close icon, particular tab item will be removed.

Default Value

  • false

Example

{% highlight html %}

<ej-tab id="tab" [showCloseButton]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

showReloadIcon boolean

{:#members:showreloadicon}

Display the Reload button for each tab items.

Default Value

  • false

Example

{% highlight html %}

<ej-tab id="tab" [showReloadIcon]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

showRoundedCorner boolean

{:#members:showroundedcorner}

Tab panels and headers to be displayed in rounded corner style.

Default Value

  • false

Example

{% highlight html %}

<ej-tab id="tab" [showRoundedCorner]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

width string | number

{:#members:width}

Set the width for outer panel element, if not it’s take parent width.

Default Value

  • null

Example

{% highlight html %}

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}

}

{% endhighlight %}

Methods

addItem(url, displayLabel, index, cssClass, id)

{:#methods:additem}

Add new tab items with given name, URL and given index position, if index null it’s add last item.

Name Type Description
URL string URL name / tab id.
displayLabel string Tab Display name.
index number Index position to placed , this is optional.
cssClass string specifies cssClass, this is optional.
id string specifies id of tab, this is optional.

Example

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">Add item

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

var obj = $("#tab").data("ejTab");

obj.addItem("#new", "New Item", 3, "myClass", "newItem");

} }

{% endhighlight %}

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">Add item

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

$("#tab").ejTab("addItem","#new","New Item",3); 

} }

{% endhighlight %}

disable()

{:#methods:disable}

To disable the tab control.

Example

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">Disable

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

var obj = $("#tab").data("ejTab");

obj.disable();

} }

{% endhighlight %}

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">Disable

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

$("#tab").ejTab("disable"); 

} }

{% endhighlight %}

enable()

{:#methods:enable}

To enable the tab control.

Example

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true [enabled]=false>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">Enable

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

var obj = $("#tab").data("ejTab");

obj.enable();

} }

{% endhighlight %}

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true [enabled]=false>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">Enable

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

$("#tab").ejTab("enable"); 

} }

{% endhighlight %}

getItemsCount()

{:#methods:getitemscount}

This function get the number of tab rendered

####Returns

number

Example

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">GetItemsCount

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

var obj = $("#tab").data("ejTab");

obj.getItemsCount();

} }

{% endhighlight %}

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">GetItemsCount

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

$("#tab").ejTab("getItemsCount"); 

} }

{% endhighlight %}

hide()

{:#methods:hide}

This function hides the tab control.

Example

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">Hide

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

var obj = $("#tab").data("ejTab");

obj.hide();

} }

{% endhighlight %}

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">Hide

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

$("#tab").ejTab("hide"); 

} }

{% endhighlight %}

hideItem(index)

{:#methods:hideitem}

This function hides the specified item tab in tab control.

Name Type Description
index number index of tab item.

Example

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">Hide

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

var obj = $("#tab").data("ejTab");

obj.hideItem(1);

} }

{% endhighlight %}

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">Hide

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

$("#tab").ejTab("hideItem",1); 

} }

{% endhighlight %}

removeItem(index)

{:#methods:removeitem}

Remove the given index tab item.

Name Type Description
index number index of tab item.

Example

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">RemoveItem

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

var obj = $("#tab").data("ejTab");

obj.removeItem(1);

} }

{% endhighlight %}

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">RemoveItem

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

$("#tab").ejTab("removeItem",1); 

} }

{% endhighlight %}

show()

{:#methods:show}

This function is to show the tab control.

Example

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">Show

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

var obj = $("#tab").data("ejTab");

obj.show();

} }

{% endhighlight %}

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">Show

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

$("#tab").ejTab("show"); 

} }

{% endhighlight %}

showItem(index)

{:#methods:showitem}

This function helps to show the specified hidden tab item in tab control.

Name Type Description
index number index of tab item.

Example

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">ShowItem

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

var obj = $("#tab").data("ejTab");

obj.showItem(1);

} }

{% endhighlight %}

{% highlight html %}

<ej-tab id="tab" [allowKeyboardNavigation]=true>

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.
<button type="button" (click)="OnClick()">ShowItem

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
OnClick(){

$("#tab").ejTab("showItem",1); 

} }

{% endhighlight %}

Events

itemActive

{:#events:itemactive}

Triggered after a tab item activated.

Name Type Description
argument Object Event parameters from button
Name Type Description
cancel boolean if the event should be canceled; otherwise, false.
model object returns the tab model.
type string returns the name of the event.
prevActiveHeader Element returns previous active tab header.
prevActiveIndex number returns previous active index.
activeHeader Element returns current active tab header .
activeIndex number returns current active index.
isInteraction boolean returns, is it triggered by interaction or not.

Example

{% highlight html %}

<ej-tab id="tab" (itemActive)="itemActive($event)">

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
itemActive(args){

} }

{% endhighlight %}

ajaxBeforeLoad

{:#events:ajaxbeforeload}

Triggered before AJAX content has been loaded.

Name Type Description
argument Object Event parameters from button
Name Type Description
cancel boolean if the event should be canceled; otherwise, false.
model object returns the tab model.
type string returns the name of the event.
prevActiveHeader Element returns previous active tab header.
prevActiveIndex number returns previous active index.
activeHeader Element returns current active tab header .
activeIndex number returns current active index.
URL string returns the URL of AJAX request
isInteraction boolean returns, is it triggered by interaction or not.

Example

{% highlight html %}

Pizza cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

Sandwich cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core'; import { ViewEncapsulation } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './tab.component.html', styleUrls: ['./tab.component.css'], encapsulation: ViewEncapsulation.None, }) export class ScrollTabComponent { dataType: any;

contentType: any;

async: any; cache: any; data: Object; type: any; constructor() { this.cache= false; this.data= {}; this.type= 'GET';

this.dataType= "html";

this.contentType= "html";

this.async= true; } ajaxBeforeLoad(args){

}

}

{% endhighlight %}

The file ‘cornSpinach.html’ content is as follows.

{% highlight html %}

<div class="e-content">
    <img src="http://js.syncfusion.com/demos/web/images/accordion/corn-and-spinach-05.png" alt="corn-spinach"/>
    <div class="ingredients">
        Rate    : $70<br />
        Ingredients : cheese, sweet corn &amp; green capsicums.
            <br />
        Description: Small pizza bases are topped with spinach and Paneer and fresh cream, a nice layer of mozzarella cheese. This is baked until the cheese is all hot and gooey.                   
    </div>
</div>

{% endhighlight %}

The file ‘chickenDelite.html’ content is as follows.

{% highlight html %}

<div class="e-content">
    <img src="http://js.syncfusion.com/demos/web/images/accordion/chicken-delite.png" alt="chicken-delite"/>
    <div class="ingredients">
        Rate    : $100<br />
        Ingredients : cheese, chicken chunks, onions &amp; pineapple chunks.  
        <br />
        Description: This is a tasty, elegant chicken dish that is easy to prepare.
    </div>
</div>

{% endhighlight %}

ajaxError

{:#events:ajaxerror}

Triggered if error occurs in AJAX request.

Name Type Description
argument object Event parameters from button
Name Type Description
cancel boolean if the event should be canceled; otherwise, false.
model object returns the tab model.
type string returns the name of the event.
data object returns AJAX data details.
URL string returns the URL of AJAX request.

Example

{% highlight html %}

Pizza cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

Sandwich cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core'; import { ViewEncapsulation } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './tab.component.html', styleUrls: ['./tab.component.css'], encapsulation: ViewEncapsulation.None, }) export class ScrollTabComponent { dataType: any;

contentType: any;

async: any; cache: any; data: Object; type: any; constructor() { this.cache= false; this.data= {}; this.type= 'GET';

this.dataType= "html";

this.contentType= "html";

this.async= true; } ajaxError(args){} }

{% endhighlight %}

The file ‘cornSpinach.html’ content is as follows.

{% highlight html %}

<div class="e-content">
    <img src="http://js.syncfusion.com/demos/web/images/accordion/corn-and-spinach-05.png" alt="corn-spinach"/>
    <div class="ingredients">
        Rate    : $70<br />
        Ingredients : cheese, sweet corn &amp; green capsicums.
            <br />
        Description: Small pizza bases are topped with spinach and Paneer and fresh cream, a nice layer of mozzarella cheese. This is baked until the cheese is all hot and gooey.                   
    </div>
</div>

{% endhighlight %}

The file ‘chickenDelite.html’ content is as follows.

{% highlight html %}

<div class="e-content">
    <img src="http://js.syncfusion.com/demos/web/images/accordion/chicken-delite.png" alt="chicken-delite"/>
    <div class="ingredients">
        Rate    : $100<br />
        Ingredients : cheese, chicken chunks, onions &amp; pineapple chunks.  
        <br />
        Description: This is a tasty, elegant chicken dish that is easy to prepare.
    </div>
</div>

{% endhighlight %}

ajaxLoad

{:#events:ajaxload}

Triggered after AJAX content load action.

Name Type Description
argument object Event parameters from button
Name Type Description
cancel boolean if the event should be canceled; otherwise, false.
model object returns the tab model.
type string returns the name of the event.
prevActiveHeader Element returns previous active tab header.
prevActiveIndex number returns previous active index.
activeHeader Element returns current active tab header .
activeIndex number returns current active index.
URL string returns the URL of AJAX request
isInteraction boolean returns, is it triggered by interaction or not.

Example

{% highlight html %}

Pizza cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

Sandwich cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core'; import { ViewEncapsulation } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './tab.component.html', styleUrls: ['./tab.component.css'], encapsulation: ViewEncapsulation.None, }) export class ScrollTabComponent { dataType: any;

contentType: any;

async: any; cache: any; data: Object; type: any; constructor() { this.cache= false; this.data= {}; this.type= 'GET';

this.dataType= "html";

this.contentType= "html";

this.async= true; } ajaxLoad(args){

}

}

{% endhighlight %}

The file ‘cornSpinach.html’ content is as follows.

{% highlight html %}

<div class="e-content">
    <img src="http://js.syncfusion.com/demos/web/images/accordion/corn-and-spinach-05.png" alt="corn-spinach"/>
    <div class="ingredients">
        Rate    : $70<br />
        Ingredients : cheese, sweet corn &amp; green capsicums.
            <br />
        Description: Small pizza bases are topped with spinach and Paneer and fresh cream, a nice layer of mozzarella cheese. This is baked until the cheese is all hot and gooey.                   
    </div>
</div>

{% endhighlight %}

The file ‘chickenDelite.html’ content is as follows.

{% highlight html %}

<div class="e-content">
    <img src="http://js.syncfusion.com/demos/web/images/accordion/chicken-delite.png" alt="chicken-delite"/>
    <div class="ingredients">
        Rate    : $100<br />
        Ingredients : cheese, chicken chunks, onions &amp; pineapple chunks.  
        <br />
        Description: This is a tasty, elegant chicken dish that is easy to prepare.
    </div>
</div>

{% endhighlight %}

ajaxSuccess

{:#events:ajaxsuccess}

Triggered after a tab item activated.

Name Type Description
argument Object Event parameters from button
Name Type Description
cancel boolean if the event should be canceled; otherwise, false.
model object returns the tab model.
type string returns the name of the event.
data object return AJAX data.
URL string returns AJAX URL
content object returns content of AJAX request.

Example

{% highlight html %}

Pizza cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

Sandwich cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core'; import { ViewEncapsulation } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './tab.component.html', styleUrls: ['./tab.component.css'], encapsulation: ViewEncapsulation.None, }) export class ScrollTabComponent { dataType: any;

contentType: any;

async: any; cache: any; data: Object; type: any; constructor() { this.cache= false; this.data= {}; this.type= 'GET';

this.dataType= "html";

this.contentType= "html";

this.async= true; } ajaxSuccess(args){} }

{% endhighlight %}

The file ‘cornSpinach.html’ content is as follows.

{% highlight html %}

<div class="e-content">
    <img src="http://js.syncfusion.com/demos/web/images/accordion/corn-and-spinach-05.png" alt="corn-spinach"/>
    <div class="ingredients">
        Rate    : $70<br />
        Ingredients : cheese, sweet corn &amp; green capsicums.
            <br />
        Description: Small pizza bases are topped with spinach and Paneer and fresh cream, a nice layer of mozzarella cheese. This is baked until the cheese is all hot and gooey.                   
    </div>
</div>

{% endhighlight %}

The file ‘chickenDelite.html’ content is as follows.

{% highlight html %}

<div class="e-content">
    <img src="http://js.syncfusion.com/demos/web/images/accordion/chicken-delite.png" alt="chicken-delite"/>
    <div class="ingredients">
        Rate    : $100<br />
        Ingredients : cheese, chicken chunks, onions &amp; pineapple chunks.  
        <br />
        Description: This is a tasty, elegant chicken dish that is easy to prepare.
    </div>
</div>

{% endhighlight %}

beforeActive

{:#events:beforeactive}

Triggered before a tab item activated.

Name Type Description
argument Object Event parameters from button
Name Type Description
cancel boolean if the event should be canceled; otherwise, false.
model object returns the tab model.
type string returns the name of the event.
prevActiveHeader Element returns previous active tab header.
prevActiveIndex number returns previous active index.
activeHeader Element returns current active tab header .
activeIndex number returns current active index.
isInteraction boolean returns, is it triggered by interaction or not.

Example

{% highlight html %}

<ej-tab id="tab" (beforeActive)="beforeActive($event)">

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
beforeActive(args){

} }

{% endhighlight %}

beforeItemRemove

{:#events:beforeitemremove}

Triggered before a tab item remove.

Name Type Description
argument Object Event parameters from button.
Name Type Description
cancel boolean if the event should be canceled; otherwise, false.
model object returns the tab model.
type string returns the name of the event.
index number returns current tab item index

Example

{% highlight html %}

<ej-tab id="tab" (beforeItemRemove)="beforeItemRemove($event)">

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
beforeItemRemove(args){

} }

{% endhighlight %}

create

{:#events:create}

Triggered before a tab item Create.

Name Type Description
argument Object Event parameters from button.
Name Type Description
cancel boolean if the event should be canceled; otherwise, false.
model object returns the tab model.
type string returns the name of the event.

Example

{% highlight html %}

<ej-tab id="tab" (create)="create($event)">

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
create(args){

} }

{% endhighlight %}

destroy

{:#events:destroy}

Triggered before a tab item destroy.

Name Type Description
Object Event parameters from button.
Name Type Description
cancel boolean if the event should be canceled; otherwise, false.
model object returns the tab model.
type string returns the name of the event.

Example

{% highlight html %}

<ej-tab id="tab" (destroy)="destroy($event)">

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
destroy(args){

} }

{% endhighlight %}

itemAdd

{:#events:itemadd}

Triggered after new tab item add

Name Type Description
argument Object Event parameters from button
Name Type Description
cancel boolean if the event should be canceled; otherwise, false.
model object returns the tab model.
type string returns the name of the event.
tabHeader Element returns new added tab header.
tabContent object returns new added tab content panel.

Example

{% highlight html %}

<ej-tab id="tab" (itemAdd)="itemAdd($event)">

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
itemAdd(args){

} }

{% endhighlight %}

itemRemove

{:#events:itemremove}

Triggered after tab item removed.

Name Type Description
argument Object Event parameters from button
Name Type Description
cancel boolean if the event should be canceled; otherwise, false.
model object returns the tab model.
type string returns the name of the event.
removedTab Element returns removed tab header.

Example

{% highlight html %}

<ej-tab id="tab" (itemActive)="itemRemove($event)">

Twitter is an online social networking service that enables users to send and read short 140-character messages called "tweets". Registered users can read and post tweets, but those who are unregistered can only read them. Users access Twitter through the website interface, SMS or mobile device app Twitter Inc. is based in San Francisco and has more than 25 offices around the world. Twitter was created in March 2006 by Jack Dorsey, Evan Williams, Biz Stone, and Noah Glass and launched in July 2006. The service rapidly gained worldwide popularity, with more than 100 million users posting 340 million tweets a day in 2012.The service also handled 1.6 billion search queries per day.
Facebook is an online social networking service headquartered in Menlo Park, California. Its website was launched on February 4, 2004, by Mark Zuckerberg with his Harvard College roommates and fellow students Eduardo Saverin, Andrew McCollum, Dustin Moskovitz and Chris Hughes.The founders had initially limited the website's membership to Harvard students, but later expanded it to colleges in the Boston area, the Ivy League, and Stanford University. It gradually added support for students at various other universities and later to high-school students.
WhatsApp Messenger is a proprietary cross-platform instant messaging client for smart phones that operates under a subscription business model. It uses the Internet to send text messages, images, video, user location and audio media messages to other users using standard cellular mobile numbers. As of February 2016, WhatsApp had a user base of up to one billion,[10] making it the most globally popular messaging application. WhatsApp Inc., based in Mountain View, California, was acquired by Facebook Inc. on February 19, 2014, for approximately US$19.3 billion.

{% endhighlight %}

{% highlight ts %}

import { Component } from '@angular/core';

@Component({ selector: 'ej-app', templateUrl: './default.component.html' }) export class DefaultComponent {

constructor() {
   
}
itemRemove(args){

} }

{% endhighlight %}