UNPKG

carbon-components-angular

Version:
1,232 lines (1,085 loc) 88.6 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" > PaginationNav</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/pagination/pagination-nav/pagination-nav.component.ts</code> </p> <p class="comment"> <h3>Description</h3> </p> <p class="comment"> <p>Use pagination when you have multiple pages of data to handle. Get started with importing the module:</p> <b>Example :</b><div><pre class="line-numbers"><code class="language-typescript">import { PaginationModule } from &#39;carbon-components-angular&#39;;</code></pre></div><b>Example :</b><div><pre class="line-numbers"><code class="language-html">&lt;cds-pagination-nav [model]=&quot;model&quot; (selectPage)=&quot;selectPage($event)&quot;&gt;&lt;/cds-pagination-nav&gt;</code></pre></div><p>In your <code>selectPage()</code> method set the <code>model.currentPage</code> to selected page, <em>after</em> you load the page.</p> <b>Example :</b><div><pre class="line-numbers"><code class="language-typescript">selectPage(page) { // ... your code to load the page goes here this.model.currentPage = page; // ... anything you want to do after page selection changes goes here }</code></pre></div><p><a href="../../?path=/story/components-pagination-nav--basic">See demo</a></p> </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-pagination-nav, ibm-pagination-navm</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;div&gt; &lt;div class&#x3D;&quot;cds--pagination-nav&quot;&gt; &lt;ul class&#x3D;&quot;cds--pagination-nav__list&quot;&gt; &lt;li class&#x3D;&quot;cds--pagination-nav__list-item&quot;&gt; &lt;cds-icon-button kind&#x3D;&quot;ghost&quot; [size]&#x3D;&quot;size&quot; (click)&#x3D;&quot;jumpToPrevious()&quot; [disabled]&#x3D;&quot;leftArrowDisabled&quot; [description]&#x3D;&quot;previousItemText.subject | async&quot;&gt; &lt;svg cdsIcon&#x3D;&quot;caret--left&quot; size&#x3D;&quot;16&quot; class&#x3D;&quot;cds--btn__icon&quot;&gt; &lt;/svg&gt; &lt;/cds-icon-button&gt; &lt;/li&gt; &lt;cds-pagination-nav-item *ngIf&#x3D;&quot;this.numOfItemsToShow &gt;&#x3D; 5 || (this.numOfItemsToShow &lt;&#x3D; 4 &amp;&amp; currentPage &lt;&#x3D; 1)&quot; page&#x3D;&quot;1&quot; (click)&#x3D;&quot;currentPage &#x3D; 1&quot; [isActive]&#x3D;&quot;currentPage &#x3D;&#x3D; 1&quot;&gt; &lt;/cds-pagination-nav-item&gt; &lt;cds-pagination-overflow *ngIf&#x3D;&quot;frontCuts&quot; [count]&#x3D;&quot;frontCuts&quot; [fromIndex]&#x3D;&quot;startOffset&quot; (change)&#x3D;&quot;handleOverflowSelection($event)&quot;&gt; &lt;/cds-pagination-overflow&gt; &lt;cds-pagination-nav-item *ngFor&#x3D;&quot;let page of getPages();&quot; [page]&#x3D;&quot;page&quot; (click)&#x3D;&quot;currentPage &#x3D; page&quot; [isActive]&#x3D;&quot;currentPage &#x3D;&#x3D; page&quot;&gt; &lt;/cds-pagination-nav-item&gt; &lt;cds-pagination-overflow *ngIf&#x3D;&quot;backCuts&quot; [count]&#x3D;&quot;backCuts&quot; [fromIndex]&#x3D;&quot;totalNumbersArray.length - backCuts - 1&quot; (change)&#x3D;&quot;handleOverflowSelection($event)&quot;&gt; &lt;/cds-pagination-overflow&gt; &lt;cds-pagination-nav-item *ngIf&#x3D;&quot;totalDataLength &gt; 1&quot; [page]&#x3D;&quot;totalNumbersArray.length&quot; (click)&#x3D;&quot;currentPage &#x3D; totalNumbersArray.length&quot; [isActive]&#x3D;&quot;currentPage &#x3D;&#x3D; totalNumbersArray.length&quot;&gt; &lt;/cds-pagination-nav-item&gt; &lt;li class&#x3D;&quot;cds--pagination-nav__list-item&quot;&gt; &lt;cds-icon-button kind&#x3D;&quot;ghost&quot; [size]&#x3D;&quot;size&quot; (click)&#x3D;&quot;jumpToNext()&quot; [disabled]&#x3D;&quot;rightArrowDisabled&quot; [description]&#x3D;&quot;nextItemText.subject | async&quot;&gt; &lt;svg cdsIcon&#x3D;&quot;caret--right&quot; size&#x3D;&quot;16&quot; class&#x3D;&quot;cds--btn__icon&quot;&gt; &lt;/svg&gt; &lt;/cds-icon-button&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&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> <a href="#nextItemText" >nextItemText</a> </li> <li> <span class="modifier">Static</span> <a href="#paginationCounter" >paginationCounter</a> </li> <li> <a href="#previousItemText" >previousItemText</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> <span class="modifier">Private</span> <a href="#getCuts" >getCuts</a> </li> <li> <span class="modifier">Public</span> <a href="#getPages" >getPages</a> </li> <li> <a href="#handleOverflowSelection" >handleOverflowSelection</a> </li> <li> <span class="modifier">Public</span> <a href="#jumpToNext" >jumpToNext</a> </li> <li> <span class="modifier">Public</span> <a href="#jumpToPrevious" >jumpToPrevious</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="#disabled" >disabled</a> </li> <li> <a href="#model" >model</a> </li> <li> <a href="#numOfItemsToShow" >numOfItemsToShow</a> </li> <li> <a href="#size" >size</a> </li> <li> <a href="#translations" >translations</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="#selectPage" >selectPage</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="#class.cds--layout--size-lg" >class.cds--layout--size-lg</a> </li> <li> <a href="#class.cds--layout--size-md" >class.cds--layout--size-md</a> </li> <li> <a href="#class.cds--layout--size-sm" >class.cds--layout--size-sm</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="#translations" >translations</a> </li> <li> <a href="#smallLayoutSize" >smallLayoutSize</a> </li> <li> <a href="#mediumLayoutSize" >mediumLayoutSize</a> </li> <li> <a href="#largeLayoutSize" >largeLayoutSize</a> </li> <li> <a href="#totalNumbersArray" >totalNumbersArray</a> </li> <li> <a href="#currentPage" >currentPage</a> </li> <li> <a href="#totalDataLength" >totalDataLength</a> </li> <li> <a href="#startOffset" >startOffset</a> </li> <li> <a href="#frontCuts" >frontCuts</a> </li> <li> <a href="#backCuts" >backCuts</a> </li> <li> <a href="#leftArrowDisabled" >leftArrowDisabled</a> </li> <li> <a href="#rightArrowDisabled" >rightArrowDisabled</a> </li> </ul> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-constructor"> <h3 id="constructor">Constructor</h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <code>constructor(i18n: <a href="../injectables/I18n.html" target="_self">I18n</a>, experimental: <a href="../injectables/ExperimentalService.html" target="_self">ExperimentalService</a>)</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="212" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:212</a></div> </td> </tr> <tr> <td class="col-md-4"> <div> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Type</td> <td>Optional</td> </tr> </thead> <tbody> <tr> <td>i18n</td> <td> <code><a href="../injectables/I18n.html" target="_self" >I18n</a></code> </td> <td> No </td> </tr> <tr> <td>experimental</td> <td> <code><a href="../injectables/ExperimentalService.html" target="_self" >ExperimentalService</a></code> </td> <td> No </td> </tr> </tbody> </table> </div> </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="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="124" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:124</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Set to <code>true</code> to disable the backward/forward buttons.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="model"></a> <b>model</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="../classes/PaginationModel.html" target="_self" >PaginationModel</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/pagination/pagination-nav/pagination-nav.component.ts:120</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p><code>PaginationNavModel</code> with the information about pages you&#39;re controlling.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="numOfItemsToShow"></a> <b>numOfItemsToShow</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>4</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="128" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:128</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Number of items to show in pagination. Minimum is 4.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="size"></a> <b>size</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code>&quot;sm&quot; | &quot;md&quot; | &quot;lg&quot;</code> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>&quot;lg&quot;</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="149" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:149</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Sets the pagination nav size</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="translations"></a> <b>translations</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="../interfaces/PaginationNavTranslations.html" target="_self" >PaginationNavTranslations</a></code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="140" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:140</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Expects an object that contains some or all of:</p> <b>Example :</b><div><pre class="line-numbers"><code class="language-none">{ &quot;NEXT&quot;: &quot;Next&quot;, &quot;PREVIOUS&quot;: &quot;Previous&quot;, }</code></pre></div></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="selectPage"></a> <b>selectPage</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code>EventEmitter</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/pagination/pagination-nav/pagination-nav.component.ts:168</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Emits the new page number.</p> <p>You should tie into this and update <code>model.currentPage</code> once the fresh data is finally loaded.</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="class.cds--layout--size-lg"></a> <span class="name"> <span ><b>class.cds--layout--size-lg</b></span> <a href="#class.cds--layout--size-lg"><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/boolean" target="_blank" >boolean</a></code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="158" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:158</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="class.cds--layout--size-md"></a> <span class="name"> <span ><b>class.cds--layout--size-md</b></span> <a href="#class.cds--layout--size-md"><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/boolean" target="_blank" >boolean</a></code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="155" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:155</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="class.cds--layout--size-sm"></a> <span class="name"> <span ><b>class.cds--layout--size-sm</b></span> <a href="#class.cds--layout--size-sm"><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/boolean" target="_blank" >boolean</a></code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="152" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:152</a></div> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-methods"> <h3 id="methods"> Methods </h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="getCuts"></a> <span class="name"> <span class="modifier">Private</span> <span ><b>getCuts</b></span> <a href="#getCuts"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <span class="modifier-icon icon ion-ios-reset"></span> <code>getCuts(splitPoint: null)</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="240" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:240</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Type</td> <td>Optional</td> <td>Default value</td> </tr> </thead> <tbody> <tr> <td>splitPoint</td> <td> <code>null</code> </td> <td> No </td> <td> <code>null</code> </td> </tr> </tbody> </table> </div> <div class="io-description"> <b>Returns : </b> <code>{ front: number; back: number; }</code> </div> <div class="io-description"> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="getPages"></a> <span class="name"> <span class="modifier">Public</span> <span ><b>getPages</b></span> <a href="#getPages"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <span class="modifier-icon icon ion-ios-reset"></span> <code>getPages()</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="232" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:232</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"> <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="handleOverflowSelection"></a> <span class="name"> <span ><b>handleOverflowSelection</b></span> <a href="#handleOverflowSelection"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <code>handleOverflowSelection(page)</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="218" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:218</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Optional</td> </tr> </thead> <tbody> <tr> <td>page</td> <td> No </td> </tr> </tbody> </table> </div> <div class="io-description"> <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code> </div> <div class="io-description"> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="jumpToNext"></a> <span class="name"> <span class="modifier">Public</span> <span ><b>jumpToNext</b></span> <a href="#jumpToNext"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <span class="modifier-icon icon ion-ios-reset"></span> <code>jumpToNext()</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="224" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:224</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"> <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="jumpToPrevious"></a> <span class="name"> <span class="modifier">Public</span> <span ><b>jumpToPrevious</b></span> <a href="#jumpToPrevious"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <span class="modifier-icon icon ion-ios-reset"></span> <code>jumpToPrevious()</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="228" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:228</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"> <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code> </div> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-properties"> <h3 id="inputs"> Properties </h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="nextItemText"></a> <span class="name"> <span ><b>nextItemText</b></span> <a href="#nextItemText"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>this.i18n.getOverridable(&quot;PAGINATION.NEXT&quot;)</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="211" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:211</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="paginationCounter"></a> <span class="name"> <span class="modifier">Static</span> <span ><b>paginationCounter</b></span> <a href="#paginationCounter"><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"> <i>Default value : </i><code>0</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="116" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:116</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="previousItemText"></a> <span class="name"> <span ><b>previousItemText</b></span> <a href="#previousItemText"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>this.i18n.getOverridable(&quot;PAGINATION.PREVIOUS&quot;)</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="212" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:212</a></div> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-accessors"> <h3 id="accessors"> Accessors </h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="translations"></a> <span class="name"><b>translations</b><a href="#translations"><span class="icon ion-ios-link"></span></a></span> </td> </tr> <tr> <td class="col-md-4"> <span class="accessor"><b>set</b><code>translations(value: <a href="../interfaces/PaginationNavTranslations.html" target="_self">PaginationNavTranslations</a>)</code></span> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="140" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:140</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Expects an object that contains some or all of:</p> <b>Example :</b><div><pre class="line-numbers"><code class="language-none">{ &quot;NEXT&quot;: &quot;Next&quot;, &quot;PREVIOUS&quot;: &quot;Previous&quot;, }</code></pre></div></div> <div class="io-description"> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Type</td> <td>Optional</td> </tr> </thead> <tbody> <tr> <td>value</td> <td> <code><a href="../interfaces/PaginationNavTranslations.html" target="_self" >PaginationNavTranslations</a></code> </td> <td> No </td> </tr> </tbody> </table> </div> <div> </div> <div class="io-description"> <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="smallLayoutSize"></a> <span class="name"><b>smallLayoutSize</b><a href="#smallLayoutSize"><span class="icon ion-ios-link"></span></a></span> </td> </tr> <tr> <td class="col-md-4"> <span class="accessor"><b>get</b><code>smallLayoutSize()</code></span> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="152" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:152</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="mediumLayoutSize"></a> <span class="name"><b>mediumLayoutSize</b><a href="#mediumLayoutSize"><span class="icon ion-ios-link"></span></a></span> </td> </tr> <tr> <td class="col-md-4"> <span class="accessor"><b>get</b><code>mediumLayoutSize()</code></span> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="155" class="link-to-prism">src/pagination/pagination-nav/pagination-nav.component.ts:155</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="largeLayoutSize"></a> <span class="name"><b>largeLayoutSize</b><a href="#largeLayoutSize"><span class="icon ion-ios-link"></span></a></span> </td> </tr>