UNPKG

carbon-components-angular

Version:
1,249 lines (1,151 loc) 102 kB
<!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>carbon-components-angular documentation</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="../images/favicon.ico"> <link rel="stylesheet" href="../styles/style.css"> <link rel="stylesheet" href="../styles/dark.css"> <style> footer.carbon { position: absolute; bottom: 0; width: 100%; z-index: 9999; } #root > div { /* * Subtracting the height of the footer to prevent * overlaying the footer ontop of content */ height: calc(100vh - 48px); } </style> </head> <body> <script> // Blocking script to avoid flickering dark mode // Dark mode toggle button var useDark = window.matchMedia('(prefers-color-scheme: dark)'); var darkModeState = useDark.matches; var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input'); var $darkModeToggles = document.querySelectorAll('.dark-mode-switch'); var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state'); function checkToggle(check) { for (var i = 0; i < $darkModeToggleSwitchers.length; i++) { $darkModeToggleSwitchers[i].checked = check; } } function toggleDarkMode(state) { if (window.localStorage) { localStorage.setItem('compodoc_darkmode-state', state); } checkToggle(state); const hasClass = document.body.classList.contains('dark'); if (state) { for (var i = 0; i < $darkModeToggles.length; i++) { $darkModeToggles[i].classList.add('dark'); } if (!hasClass) { document.body.classList.add('dark'); } } else { for (var i = 0; i < $darkModeToggles.length; i++) { $darkModeToggles[i].classList.remove('dark'); } if (hasClass) { document.body.classList.remove('dark'); } } } useDark.addEventListener('change', function (evt) { toggleDarkMode(evt.matches); }); if (darkModeStateLocal) { darkModeState = darkModeStateLocal === 'true'; } toggleDarkMode(darkModeState); </script> <div class="navbar navbar-default navbar-fixed-top d-md-none p-0"> <div class="d-flex"> <a href="../" class="navbar-brand">carbon-components-angular documentation</a> <button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button> </div> </div> <div class="xs-menu menu" id="mobile-menu"> <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu> </div> <div class="container-fluid main"> <div class="row main"> <div class="d-none d-md-block menu"> <compodoc-menu mode="normal"></compodoc-menu> </div> <!-- START CONTENT --> <div class="content component"> <div class="content-data"> <ol class="breadcrumb"> <li class="breadcrumb-item">Components</li> <li class="breadcrumb-item" > Tab</li> </ol> <ul class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a href="#info" class="nav-link active" role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a> </li> <li class="nav-item"> <a href="#source" class="nav-link" role="tab" id="source-tab" data-bs-toggle="tab" data-link="source">Source</a> </li> <li class="nav-item"> <a href="#tree" class="nav-link" role="tab" id="tree-tab" data-bs-toggle="tab" data-link="dom-tree">DOM Tree</a> </li> </ul> <div class="tab-content"> <div class="tab-pane fade active in" id="info"><p class="comment"> <h3>File</h3> </p> <p class="comment"> <code>src/tabs/tab.component.ts</code> </p> <p class="comment"> <h3>Description</h3> </p> <p class="comment"> <p>The <code>Tab</code> component is a child of the <code>Tabs</code> component. It represents one <code>Tab</code> item and its content within a panel of other <code>Tab</code> items.</p> <p><code>Tab</code> takes a string or <code>TemplateRef</code> for the header, and any content for the body of the tab. Disabled states should be handled by the application (ie. switch to the tab, but display some indication as to <em>why</em> the tab is disabled).</p> <p>When the tab is selected the <code>select</code> output will be triggered. The <code>select</code> output will also be triggered for the active tab when the tabs are loaded or updated.</p> <p>Tab with string header:</p> <b>Example :</b><div><pre class="line-numbers"><code class="language-html">&lt;cds-tab heading=&#39;tab1&#39;&gt; tab 1 content &lt;/cds-tab&gt;</code></pre></div><p>Tab with custom header:</p> <b>Example :</b><div><pre class="line-numbers"><code class="language-html">&lt;ng-template #tabHeading&gt; &lt;svg cdsIcon=&quot;facebook&quot; size=&quot;sm&quot; style=&quot;margin-right: 7px;&quot;&gt; &lt;/svg&gt; Hello Tab 1 &lt;/ng-template&gt; &lt;cds-tabs&gt; &lt;cds-tab [heading]=&quot;tabHeading&quot;&gt; Tab 1 content &lt;svg cdsIcon=&quot;alert&quot; size=&quot;lg&quot;&gt;&lt;/svg&gt; &lt;/cds-tab&gt; &lt;cds-tab heading=&#39;Tab2&#39;&gt; Tab 2 content &lt;/cds-tab&gt; &lt;cds-tab heading=&#39;Tab3&#39;&gt; Tab 3 content &lt;/cds-tab&gt; &lt;/cds-tabs&gt;</code></pre></div> </p> <p class="comment"> <h3>Implements</h3> </p> <p class="comment"> <code>OnInit</code> </p> <section data-compodoc="block-metadata"> <h3>Metadata</h3> <table class="table table-sm table-hover metadata"> <tbody> <tr> <td class="col-md-3">selector</td> <td class="col-md-9"><code>cds-tab, ibm-tab</code></td> </tr> <tr> <td class="col-md-3">template</td> <td class="col-md-9"><pre class="line-numbers"><code class="language-html">&lt;ng-container *ngIf&#x3D;&quot;shouldRender()&quot;&gt; &lt;ng-template *ngIf&#x3D;&quot;isTemplate(tabContent)&quot; [ngTemplateOutlet]&#x3D;&quot;tabContent&quot; [ngTemplateOutletContext]&#x3D;&quot;{ $implicit: templateContext }&quot;&gt; &lt;/ng-template&gt; &lt;ng-content&gt;&lt;/ng-content&gt; &lt;/ng-container&gt; </code></pre></td> </tr> </tbody> </table> </section> <section data-compodoc="block-index"> <h3 id="index">Index</h3> <table class="table table-sm table-bordered index-table"> <tbody> <tr> <td class="col-md-4"> <h6><b>Properties</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <span class="modifier">Protected</span> <a href="#_cacheActive" >_cacheActive</a> </li> <li> <span class="modifier">Private</span> <span class="modifier">Static</span> <a href="#counter" >counter</a> </li> <li> <span class="modifier">Public</span> <a href="#headingIsTemplate" >headingIsTemplate</a> </li> <li> <span class="modifier"></span> <a href="#panelAriaLive" >panelAriaLive</a> </li> <li> <span class="modifier"></span> <a href="#panelRole" >panelRole</a> </li> <li> <span class="modifier"></span> <a href="#tabContentClass" >tabContentClass</a> </li> </ul> </td> </tr> <tr> <td class="col-md-4"> <h6><b>Methods</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <a href="#doSelect" >doSelect</a> </li> <li> <span class="modifier">Public</span> <a href="#isTemplate" >isTemplate</a> </li> <li> <a href="#ngOnInit" >ngOnInit</a> </li> <li> <a href="#shouldRender" >shouldRender</a> </li> </ul> </td> </tr> <tr> <td class="col-md-4"> <h6><b>Inputs</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <a href="#active" >active</a> </li> <li> <a href="#badgeIndicator" >badgeIndicator</a> </li> <li> <a href="#cacheActive" >cacheActive</a> </li> <li> <a href="#closeButtonAriaLabel" >closeButtonAriaLabel</a> </li> <li> <a href="#context" >context</a> </li> <li> <a href="#disabled" >disabled</a> </li> <li> <a href="#enterDelayMs" >enterDelayMs</a> </li> <li> <a href="#heading" >heading</a> </li> <li> <a href="#icon" >icon</a> </li> <li> <a href="#iconLabel" >iconLabel</a> </li> <li> <a href="#iconOnly" >iconOnly</a> </li> <li> <a href="#id" >id</a> </li> <li> <a href="#isTooltipOpen" >isTooltipOpen</a> </li> <li> <a href="#leaveDelayMs" >leaveDelayMs</a> </li> <li> <a href="#secondaryLabel" >secondaryLabel</a> </li> <li> <a href="#tabContent" >tabContent</a> </li> <li> <a href="#tabIndex" >tabIndex</a> </li> <li> <a href="#templateContext" >templateContext</a> </li> <li> <a href="#title" >title</a> </li> </ul> </td> </tr> <tr> <td class="col-md-4"> <h6><b>Outputs</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <a href="#selected" >selected</a> </li> <li> <a href="#tabClose" >tabClose</a> </li> </ul> </td> </tr> <tr> <td class="col-md-4"> <h6><b>HostBindings</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <a href="#attr.aria-labelledby" >attr.aria-labelledby</a> </li> <li> <a href="#attr.aria-live" >attr.aria-live</a> </li> <li> <a href="#attr.hidden" >attr.hidden</a> </li> <li> <a href="#attr.id" >attr.id</a> </li> <li> <a href="#attr.role" >attr.role</a> </li> <li> <a href="#attr.tabindex" >attr.tabindex</a> </li> <li> <a href="#class.cds--tab-content" >class.cds--tab-content</a> </li> <li> <a href="#style.display" >style.display</a> </li> </ul> </td> </tr> <tr> <td class="col-md-4"> <h6><b>Accessors</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <a href="#hostId" >hostId</a> </li> <li> <a href="#hostAriaLabelledby" >hostAriaLabelledby</a> </li> <li> <a href="#hostTabIndex" >hostTabIndex</a> </li> <li> <a href="#hostHidden" >hostHidden</a> </li> <li> <a href="#hostDisplay" >hostDisplay</a> </li> <li> <a href="#cacheActive" >cacheActive</a> </li> </ul> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-inputs"> <h3 id="inputs">Inputs</h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="active"></a> <b>active</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>false</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="125" class="link-to-prism">src/tabs/tab.component.ts:125</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Indicates whether the <code>Tab</code> is active/selected. Determines whether its tab panel content is rendered.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="badgeIndicator"></a> <b>badgeIndicator</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>false</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="172" class="link-to-prism">src/tabs/tab.component.ts:172</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p><strong>Preview</strong>: Icon-only tabs — show a notification dot on the icon.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="cacheActive"></a> <b>cacheActive</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="89" class="link-to-prism">src/tabs/tab.component.ts:89</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Set to <code>true</code> to have <code>Tab</code> items cached and not reloaded on tab switching.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="closeButtonAriaLabel"></a> <b>closeButtonAriaLabel</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>&quot;Press delete to remove tab&quot;</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="160" class="link-to-prism">src/tabs/tab.component.ts:160</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Sets the aria-label of the close button when the parent <code>Tabs</code> uses <code>dismissable</code>.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="context"></a> <b>context</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="120" class="link-to-prism">src/tabs/tab.component.ts:120</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Allows the user to pass data to the custom template for the <code>Tab</code> heading.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="disabled"></a> <b>disabled</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>false</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="129" class="link-to-prism">src/tabs/tab.component.ts:129</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Indicates whether or not the <code>Tab</code> item is disabled.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="enterDelayMs"></a> <b>enterDelayMs</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="176" class="link-to-prism">src/tabs/tab.component.ts:176</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Icon-only tabs: tooltip show delay (ms).</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="heading"></a> <b>heading</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code>string | TemplateRef&lt;any&gt;</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="109" class="link-to-prism">src/tabs/tab.component.ts:109</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>The <code>Tab</code>&#39;s title to be displayed or custom template for the <code>Tab</code> heading.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="icon"></a> <b>icon</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code>TemplateRef&lt;any&gt;</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="151" class="link-to-prism">src/tabs/tab.component.ts:151</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Optional template that renders an icon inside the <code>Tab</code> header. Useful for rendering a <code>cdsIcon</code> or any other icon next to the tab label.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="iconLabel"></a> <b>iconLabel</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="168" class="link-to-prism">src/tabs/tab.component.ts:168</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Icon-only tabs: accessible name and tooltip text.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="iconOnly"></a> <b>iconOnly</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>false</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="164" class="link-to-prism">src/tabs/tab.component.ts:164</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Icon-only tab: pair with <code>icon</code> and <code>iconLabel</code>.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="id"></a> <b>id</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>&#x60;n-tab-${Tab.counter++}&#x60;</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="138" class="link-to-prism">src/tabs/tab.component.ts:138</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Sets the id of the <code>Tab</code>. Will be uniquely generated if not provided.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="isTooltipOpen"></a> <b>isTooltipOpen</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>false</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="184" class="link-to-prism">src/tabs/tab.component.ts:184</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Icon-only tabs: open the tooltip on first render.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="leaveDelayMs"></a> <b>leaveDelayMs</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="180" class="link-to-prism">src/tabs/tab.component.ts:180</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Icon-only tabs: tooltip hide delay (ms).</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="secondaryLabel"></a> <b>secondaryLabel</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="156" class="link-to-prism">src/tabs/tab.component.ts:156</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Optional secondary label rendered below the primary tab label. Only displayed when the parent <code>Tabs</code> is using <code>type=&quot;contained&quot;</code>.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="tabContent"></a> <b>tabContent</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code>TemplateRef&lt;any&gt;</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="142" class="link-to-prism">src/tabs/tab.component.ts:142</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Allows lifecycle hooks to be called on the rendered content.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="tabIndex"></a> <b>tabIndex</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>0</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="134" class="link-to-prism">src/tabs/tab.component.ts:134</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p><code>tabindex</code> on the tab panel, the parent may set this to <code>null</code> when <code>isNavigation</code> is <code>true</code>.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="templateContext"></a> <b>templateContext</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="146" class="link-to-prism">src/tabs/tab.component.ts:146</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Optional data for templates passed as implicit context.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="title"></a> <b>title</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="116" class="link-to-prism">src/tabs/tab.component.ts:116</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Optional override for the <code>tabItem&#39;s</code>&#39;s title attribute which is set in <code>TabHeaders</code>. <code>tabItem</code>&#39;s title attribute is automatically set to <code>heading</code>.</p> <p>You might want to use this if you set <code>heading</code> to a <code>TemplateRef</code>.</p> </div> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-outputs"> <h3 id="outputs">Outputs</h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="selected"></a> <b>selected</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code>EventEmitter&lt;void&gt;</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="188" class="link-to-prism">src/tabs/tab.component.ts:188</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Emits when this tab becomes selected.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="tabClose"></a> <b>tabClose</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code>EventEmitter&lt;void&gt;</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="192" class="link-to-prism">src/tabs/tab.component.ts:192</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Emits when this tab&#39;s close button is pressed.</p> </div> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-properties"> <h3>HostBindings</h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="attr.aria-labelledby"></a> <span class="name"> <span ><b>attr.aria-labelledby</b></span> <a href="#attr.aria-labelledby"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="71" class="link-to-prism">src/tabs/tab.component.ts:71</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="attr.aria-live"></a> <span class="name"> <span ><b>attr.aria-live</b></span> <a href="#attr.aria-live"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>&quot;polite&quot;</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="99" class="link-to-prism">src/tabs/tab.component.ts:99</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="attr.hidden"></a> <span class="name"> <span ><b>attr.hidden</b></span> <a href="#attr.hidden"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="80" class="link-to-prism">src/tabs/tab.component.ts:80</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p><code>hidden</code> + display keep inactive panels out of layout; <code>null</code> display when active preserves grid/flex.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="attr.id"></a> <span class="name"> <span ><b>attr.id</b></span> <a href="#attr.id"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="68" class="link-to-prism">src/tabs/tab.component.ts:68</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="attr.role"></a> <span class="name"> <span ><b>attr.role</b></span> <a href="#attr.role"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>&quot;tabpanel&quot;</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="98" class="link-to-prism">src/tabs/tab.component.ts:98</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="attr.tabindex"></a> <span class="name"> <span ><b>attr.tabindex</b></span> <a href="#attr.tabindex"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="74" class="link-to-prism">src/tabs/tab.component.ts:74</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="class.cds--tab-content"></a>