UNPKG

carbon-components-angular

Version:
1,169 lines (1,087 loc) 186 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"> </head> <body> <div class="navbar navbar-default navbar-fixed-top d-block d-sm-none"> <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 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="hidden-xs 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" > Dropdown</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/dropdown/dropdown.component.ts</code> </p> <p class="comment"> <h3>Description</h3> </p> <p class="comment"> <p>Drop-down lists enable users to select one or more items from a list.</p> <h4>Opening behavior/List DOM placement</h4> <p>By default the dropdown will try to figure out the best placement for the dropdown list.</p> <p>If it&#39;s not contained within any scrolling elements, it will open inline, if it <em>is</em> contained within a scrolling container it will try to open in the body, or an <code>cds-placeholder</code>.</p> <p>To control this behavior you can use the <code>appendInline</code> input:</p> <ul> <li><code>[appendInline]=&quot;null&quot;</code> is the default (auto detection)</li> <li><code>[appendInline]=&quot;false&quot;</code> will always append to the body/<code>cds-placeholder</code></li> <li><code>[appendInline]=&quot;true&quot;</code> will always append inline (next to the dropdown button)</li> </ul> <p>Get started with importing the module:</p> <div><pre class="line-numbers"><code class="language-typescript">import { DropdownModule } from &#39;carbon-components-angular&#39;;</code></pre></div><p><a href="../../?path=/story/components-dropdown--basic">See demo</a></p> </p> <p class="comment"> <h3>Implements</h3> </p> <p class="comment"> <code>OnInit</code> <code>AfterContentInit</code> <code>AfterViewInit</code> <code>OnDestroy</code> <code>ControlValueAccessor</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">providers</td> <td class="col-md-9"> <code><a href="../components/Dropdown.html" target="_self" >{ provide: NG_VALUE_ACCESSOR, useExisting: Dropdown, multi: true }</a></code> </td> </tr> <tr> <td class="col-md-3">selector</td> <td class="col-md-9"><code>cds-dropdown, ibm-dropdown</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;label *ngIf&#x3D;&quot;label &amp;&amp; !skeleton&quot; [for]&#x3D;&quot;id&quot; class&#x3D;&quot;cds--label&quot; [ngClass]&#x3D;&quot;{&#x27;cds--label--disabled&#x27;: disabled}&quot;&gt; &lt;ng-container *ngIf&#x3D;&quot;!isTemplate(label)&quot;&gt;{{label}}&lt;/ng-container&gt; &lt;ng-template *ngIf&#x3D;&quot;isTemplate(label)&quot; [ngTemplateOutlet]&#x3D;&quot;label&quot;&gt;&lt;/ng-template&gt; &lt;/label&gt; &lt;div class&#x3D;&quot;cds--list-box&quot; [ngClass]&#x3D;&quot;{ &#x27;cds--dropdown&#x27;: type !&#x3D;&#x3D; &#x27;multi&#x27;, &#x27;cds--multiselect&#x27;: type &#x3D;&#x3D;&#x3D; &#x27;multi&#x27;, &#x27;cds--multi-select--selected&#x27;: type &#x3D;&#x3D;&#x3D; &#x27;multi&#x27; &amp;&amp; getSelectedCount() &gt; 0, &#x27;cds--dropdown--light&#x27;: theme &#x3D;&#x3D;&#x3D; &#x27;light&#x27;, &#x27;cds--list-box--light&#x27;: theme &#x3D;&#x3D;&#x3D; &#x27;light&#x27;, &#x27;cds--list-box--inline&#x27;: inline, &#x27;cds--skeleton&#x27;: skeleton, &#x27;cds--dropdown--disabled cds--list-box--disabled&#x27;: disabled, &#x27;cds--dropdown--invalid&#x27;: invalid, &#x27;cds--dropdown--warning cds--list-box--warning&#x27;: warn, &#x27;cds--dropdown--sm cds--list-box--sm&#x27;: size &#x3D;&#x3D;&#x3D; &#x27;sm&#x27;, &#x27;cds--dropdown--md cds--list-box--md&#x27;: size &#x3D;&#x3D;&#x3D; &#x27;md&#x27;, &#x27;cds--dropdown--lg cds--list-box--lg&#x27;: size &#x3D;&#x3D;&#x3D; &#x27;lg&#x27;, &#x27;cds--list-box--expanded&#x27;: !menuIsClosed }&quot;&gt; &lt;button #dropdownButton [id]&#x3D;&quot;id&quot; type&#x3D;&quot;button&quot; class&#x3D;&quot;cds--list-box__field&quot; [ngClass]&#x3D;&quot;{&#x27;a&#x27;: !menuIsClosed}&quot; [attr.aria-expanded]&#x3D;&quot;!menuIsClosed&quot; [attr.aria-disabled]&#x3D;&quot;disabled&quot; aria-haspopup&#x3D;&quot;listbox&quot; (click)&#x3D;&quot;disabled ? $event.stopPropagation() : toggleMenu()&quot; (blur)&#x3D;&quot;onBlur()&quot; [attr.disabled]&#x3D;&quot;disabled ? true : null&quot;&gt; &lt;div (click)&#x3D;&quot;clearSelected()&quot; (keydown.enter)&#x3D;&quot;clearSelected()&quot; *ngIf&#x3D;&quot;type &#x3D;&#x3D;&#x3D; &#x27;multi&#x27; &amp;&amp; getSelectedCount() &gt; 0&quot; class&#x3D;&quot;cds--list-box__selection cds--tag--filter cds--list-box__selection--multi&quot; tabindex&#x3D;&quot;0&quot; [title]&#x3D;&quot;clearText&quot;&gt; {{getSelectedCount()}} &lt;svg focusable&#x3D;&quot;false&quot; preserveAspectRatio&#x3D;&quot;xMidYMid meet&quot; style&#x3D;&quot;will-change: transform;&quot; role&#x3D;&quot;img&quot; xmlns&#x3D;&quot;http://www.w3.org/2000/svg&quot; width&#x3D;&quot;16&quot; height&#x3D;&quot;16&quot; viewBox&#x3D;&quot;0 0 16 16&quot; aria-hidden&#x3D;&quot;true&quot;&gt; &lt;path d&#x3D;&quot;M12 4.7l-.7-.7L8 7.3 4.7 4l-.7.7L7.3 8 4 11.3l.7.7L8 8.7l3.3 3.3.7-.7L8.7 8z&quot;&gt;&lt;/path&gt; &lt;/svg&gt; &lt;/div&gt; &lt;span *ngIf&#x3D;&quot;isRenderString()&quot; class&#x3D;&quot;cds--list-box__label&quot;&gt;{{getDisplayStringValue() | async}}&lt;/span&gt; &lt;ng-template *ngIf&#x3D;&quot;!isRenderString()&quot; [ngTemplateOutletContext]&#x3D;&quot;getRenderTemplateContext()&quot; [ngTemplateOutlet]&#x3D;&quot;displayValue&quot;&gt; &lt;/ng-template&gt; &lt;svg *ngIf&#x3D;&quot;invalid&quot; class&#x3D;&quot;cds--dropdown__invalid-icon&quot; cdsIcon&#x3D;&quot;warning--filled&quot; size&#x3D;&quot;16&quot;&gt; &lt;/svg&gt; &lt;svg *ngIf&#x3D;&quot;!invalid &amp;&amp; warn&quot; cdsIcon&#x3D;&quot;warning--alt--filled&quot; size&#x3D;&quot;16&quot; class&#x3D;&quot;cds--list-box__invalid-icon cds--list-box__invalid-icon--warning&quot;&gt; &lt;/svg&gt; &lt;span class&#x3D;&quot;cds--list-box__menu-icon&quot;&gt; &lt;svg *ngIf&#x3D;&quot;!skeleton&quot; cdsIcon&#x3D;&quot;chevron--down&quot; size&#x3D;&quot;16&quot; [attr.aria-label]&#x3D;&quot;menuButtonLabel&quot; [ngClass]&#x3D;&quot;{&#x27;cds--list-box__menu-icon--open&#x27;: !menuIsClosed }&quot;&gt; &lt;/svg&gt; &lt;/span&gt; &lt;/button&gt; &lt;div #dropdownMenu [ngClass]&#x3D;&quot;{ &#x27;cds--list-box--up&#x27;: this.dropUp !&#x3D;&#x3D; null &amp;&amp; this.dropUp !&#x3D;&#x3D; undefined ? dropUp : _dropUp }&quot;&gt; &lt;ng-content *ngIf&#x3D;&quot;!menuIsClosed&quot;&gt;&lt;/ng-content&gt; &lt;/div&gt; &lt;/div&gt; &lt;div *ngIf&#x3D;&quot;helperText &amp;&amp; !invalid &amp;&amp; !warn &amp;&amp; !skeleton&quot; class&#x3D;&quot;cds--form__helper-text&quot; [ngClass]&#x3D;&quot;{ &#x27;cds--form__helper-text--disabled&#x27;: disabled }&quot;&gt; &lt;ng-container *ngIf&#x3D;&quot;!isTemplate(helperText)&quot;&gt;{{helperText}}&lt;/ng-container&gt; &lt;ng-template *ngIf&#x3D;&quot;isTemplate(helperText)&quot; [ngTemplateOutlet]&#x3D;&quot;helperText&quot;&gt;&lt;/ng-template&gt; &lt;/div&gt; &lt;div *ngIf&#x3D;&quot;invalid&quot; class&#x3D;&quot;cds--form-requirement&quot;&gt; &lt;ng-container *ngIf&#x3D;&quot;!isTemplate(invalidText)&quot;&gt;{{ invalidText }}&lt;/ng-container&gt; &lt;ng-template *ngIf&#x3D;&quot;isTemplate(invalidText)&quot; [ngTemplateOutlet]&#x3D;&quot;invalidText&quot;&gt;&lt;/ng-template&gt; &lt;/div&gt; &lt;div *ngIf&#x3D;&quot;!invalid &amp;&amp; warn&quot; class&#x3D;&quot;cds--form-requirement&quot;&gt; &lt;ng-container *ngIf&#x3D;&quot;!isTemplate(warnText)&quot;&gt;{{warnText}}&lt;/ng-container&gt; &lt;ng-template *ngIf&#x3D;&quot;isTemplate(warnText)&quot; [ngTemplateOutlet]&#x3D;&quot;warnText&quot;&gt;&lt;/ng-template&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="#_dropUp" >_dropUp</a> </li> <li> <span class="modifier">Private</span> <a href="#_writtenValue" >_writtenValue</a> </li> <li> <span class="modifier"></span> <a href="#dropdownButton" >dropdownButton</a> </li> <li> <span class="modifier">Static</span> <a href="#dropdownCount" >dropdownCount</a> </li> <li> <span class="modifier"></span> <a href="#dropdownMenu" >dropdownMenu</a> </li> <li> <span class="modifier"></span> <a href="#hostClass" >hostClass</a> </li> <li> <a href="#keyboardNav" >keyboardNav</a> </li> <li> <a href="#menuIsClosed" >menuIsClosed</a> </li> <li> <a href="#noop" >noop</a> </li> <li> <span class="modifier">Protected</span> <a href="#onTouchedCallback" >onTouchedCallback</a> </li> <li> <a href="#outsideClick" >outsideClick</a> </li> <li> <a href="#outsideKey" >outsideKey</a> </li> <li> <a href="#propagateChange" >propagateChange</a> </li> <li> <span class="modifier"></span> <a href="#view" >view</a> </li> <li> <span class="modifier">Protected</span> <a href="#visibilitySubscription" >visibilitySubscription</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="#_appendToBody" >_appendToBody</a> </li> <li> <a href="#_appendToDropdown" >_appendToDropdown</a> </li> <li> <a href="#_keyboardNav" >_keyboardNav</a> </li> <li> <a href="#_noop" >_noop</a> </li> <li> <a href="#_outsideClick" >_outsideClick</a> </li> <li> <a href="#_outsideKey" >_outsideKey</a> </li> <li> <a href="#_shouldDropUp" >_shouldDropUp</a> </li> <li> <span class="modifier">Protected</span> <a href="#checkForReorder" >checkForReorder</a> </li> <li> <a href="#clearSelected" >clearSelected</a> </li> <li> <a href="#closedDropdownNavigation" >closedDropdownNavigation</a> </li> <li> <a href="#closeMenu" >closeMenu</a> </li> <li> <a href="#getDisplayStringValue" >getDisplayStringValue</a> </li> <li> <a href="#getRenderTemplateContext" >getRenderTemplateContext</a> </li> <li> <a href="#getSelectedCount" >getSelectedCount</a> </li> <li> <a href="#isRenderString" >isRenderString</a> </li> <li> <span class="modifier">Public</span> <a href="#isTemplate" >isTemplate</a> </li> <li> <a href="#ngAfterContentInit" >ngAfterContentInit</a> </li> <li> <a href="#ngAfterViewInit" >ngAfterViewInit</a> </li> <li> <a href="#ngOnDestroy" >ngOnDestroy</a> </li> <li> <a href="#ngOnInit" >ngOnInit</a> </li> <li> <a href="#onBlur" >onBlur</a> </li> <li> <span class="modifier"></span> <a href="#onKeyDown" >onKeyDown</a> </li> <li> <a href="#openMenu" >openMenu</a> </li> <li> <a href="#registerOnChange" >registerOnChange</a> </li> <li> <a href="#registerOnTouched" >registerOnTouched</a> </li> <li> <a href="#setDisabledState" >setDisabledState</a> </li> <li> <a href="#toggleMenu" >toggleMenu</a> </li> <li> <a href="#valueSelected" >valueSelected</a> </li> <li> <a href="#writeValue" >writeValue</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="#appendInline" >appendInline</a> </li> <li> <a href="#clearText" >clearText</a> </li> <li> <a href="#disableArrowKeys" >disableArrowKeys</a> </li> <li> <a href="#disabled" >disabled</a> </li> <li> <a href="#displayValue" >displayValue</a> </li> <li> <a href="#dropUp" >dropUp</a> </li> <li> <a href="#helperText" >helperText</a> </li> <li> <a href="#id" >id</a> </li> <li> <a href="#inline" >inline</a> </li> <li> <a href="#invalid" >invalid</a> </li> <li> <a href="#invalidText" >invalidText</a> </li> <li> <a href="#itemValueKey" >itemValueKey</a> </li> <li> <a href="#label" >label</a> </li> <li> <a href="#menuButtonLabel" >menuButtonLabel</a> </li> <li> <a href="#placeholder" >placeholder</a> </li> <li> <a href="#scrollableContainer" >scrollableContainer</a> </li> <li> <a href="#selectedLabel" >selectedLabel</a> </li> <li> <a href="#selectionFeedback" >selectionFeedback</a> </li> <li> <a href="#size" >size</a> </li> <li> <a href="#skeleton" >skeleton</a> </li> <li> <a href="#theme" class="deprecated-name">theme</a> </li> <li> <a href="#type" >type</a> </li> <li> <a href="#warn" >warn</a> </li> <li> <a href="#warnText" >warnText</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="#close" >close</a> </li> <li> <a href="#onClose" >onClose</a> </li> <li> <a href="#selected" >selected</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--dropdown__wrapper" >class.cds--dropdown__wrapper</a> </li> </ul> </td> </tr> <tr> <td class="col-md-4"> <h6><b>HostListeners</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <a href="#keydown" >keydown</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="#writtenValue" >writtenValue</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(elementRef: ElementRef, i18n: <a href="../injectables/I18n.html" target="_self">I18n</a>, dropdownService: <a href="../injectables/DropdownService.html" target="_self">DropdownService</a>, elementService: <a href="../injectables/ElementService.html" target="_self">ElementService</a>)</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="340" class="link-to-prism">src/dropdown/dropdown.component.ts:340</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Creates an instance of Dropdown.</p> </div> <div> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Type</td> <td>Optional</td> </tr> </thead> <tbody> <tr> <td>elementRef</td> <td> <code>ElementRef</code> </td> <td> No </td> </tr> <tr> <td>i18n</td> <td> <code><a href="../injectables/I18n.html" target="_self" >I18n</a></code> </td> <td> No </td> </tr> <tr> <td>dropdownService</td> <td> <code><a href="../injectables/DropdownService.html" target="_self" >DropdownService</a></code> </td> <td> No </td> </tr> <tr> <td>elementService</td> <td> <code><a href="../injectables/ElementService.html" target="_self" >ElementService</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="appendInline"></a> <b>appendInline</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>null</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="251" class="link-to-prism">src/dropdown/dropdown.component.ts:251</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>set to <code>true</code> to place the dropdown view inline with the component</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="clearText"></a> <b>clearText</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>this.i18n.get().DROPDOWN.CLEAR</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="201" class="link-to-prism">src/dropdown/dropdown.component.ts:201</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Sets the optional clear button tooltip text.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="disableArrowKeys"></a> <b>disableArrowKeys</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="231" class="link-to-prism">src/dropdown/dropdown.component.ts:231</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Set to <code>true</code> for a dropdown without arrow key activation.</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="219" class="link-to-prism">src/dropdown/dropdown.component.ts:219</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Set to <code>true</code> to disable the dropdown.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="displayValue"></a> <b>displayValue</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-4"> <i>Default value : </i><code>&quot;&quot;</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="197" class="link-to-prism">src/dropdown/dropdown.component.ts:197</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>The selected value from the <code>Dropdown</code>. Can be a string or template.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="dropUp"></a> <b>dropUp</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="281" class="link-to-prism">src/dropdown/dropdown.component.ts:281</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Overrides the automatic dropUp.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="helperText"></a> <b>helperText</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="189" class="link-to-prism">src/dropdown/dropdown.component.ts:189</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Sets the optional helper text.</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;dropdown-${Dropdown.dropdownCount++}&#x60;</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="181" class="link-to-prism">src/dropdown/dropdown.component.ts:181</a></div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="inline"></a> <b>inline</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="227" class="link-to-prism">src/dropdown/dropdown.component.ts:227</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Set to <code>true</code> for an inline dropdown.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="invalid"></a> <b>invalid</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="235" class="link-to-prism">src/dropdown/dropdown.component.ts:235</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Set to <code>true</code> for invalid state.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="invalidText"></a> <b>invalidText</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="239" class="link-to-prism">src/dropdown/dropdown.component.ts:239</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Value displayed if dropdown is in invalid state.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="itemValueKey"></a> <b>itemValueKey</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="260" class="link-to-prism">src/dropdown/dropdown.component.ts:260</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Specifies the property to be used as the return value to <code>ngModel</code></p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="label"></a> <b>label</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="185" class="link-to-prism">src/dropdown/dropdown.component.ts:185</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Label for the dropdown.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="menuButtonLabel"></a> <b>menuButtonLabel</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-4"> <i>Default value : </i><code>this.i18n.get().DROPDOWN.OPEN</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="272" class="link-to-prism">src/dropdown/dropdown.component.ts:272</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Accessible label for the button that opens the dropdown list. Defaults to the <code>DROPDOWN.OPEN</code> value from the i18n service.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="placeholder"></a> <b>placeholder</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;&quot;</code> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <a href="" data-line="193" class="link-to-prism">src/dropdown/dropdown.component.ts:193</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Value displayed if no item is selected.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="scrollableContainer"></a> <b>scrollableContainer</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="256" class="link-to-prism">src/dropdown/dropdown.component.ts:256</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Query string for the element that contains the <code>Dropdown</code>. Used to trigger closing the dropdown if it scrolls outside of the viewport of the <code>scrollableContainer</code>.</p> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="selectedLabel"></a> <b>selectedLabel</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="co