UNPKG

carbon-components-angular

Version:
501 lines (436 loc) 21.1 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 module"> <div class="content-data"> <ol class="breadcrumb"> <li class="breadcrumb-item">Modules</li> <li class="breadcrumb-item" >SelectModule</li> </ol> <div class="text-center module-graph-container"> <div id="module-graph-svg"> <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <!-- Generated by graphviz version 2.47.0 (20210316.0004) --> <!-- Title: dependencies Pages: 1 --> <svg width="919pt" height="396pt" viewBox="0.00 0.00 919.00 395.59" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 391.59)"> <title>dependencies</title> <polygon fill="white" stroke="transparent" points="-4,4 -4,-391.59 915,-391.59 915,4 -4,4"/> <text text-anchor="start" x="434.51" y="-42.4" font-family="Times-12" font-weight="bold" font-size="14.00">Legend</text> <polygon fill="#ffffb3" stroke="transparent" points="221.5,-10 221.5,-30 241.5,-30 241.5,-10 221.5,-10"/> <text text-anchor="start" x="245.13" y="-15.4" font-family="Times-12" font-size="14.00"> &#160;Declarations</text> <polygon fill="#8dd3c7" stroke="transparent" points="334.5,-10 334.5,-30 354.5,-30 354.5,-10 334.5,-10"/> <text text-anchor="start" x="358.23" y="-15.4" font-family="Times-12" font-size="14.00"> &#160;Module</text> <polygon fill="#80b1d3" stroke="transparent" points="420.5,-10 420.5,-30 440.5,-30 440.5,-10 420.5,-10"/> <text text-anchor="start" x="444.28" y="-15.4" font-family="Times-12" font-size="14.00"> &#160;Bootstrap</text> <polygon fill="#fdb462" stroke="transparent" points="517.5,-10 517.5,-30 537.5,-30 537.5,-10 517.5,-10"/> <text text-anchor="start" x="541.17" y="-15.4" font-family="Times-12" font-size="14.00"> &#160;Providers</text> <polygon fill="#fb8072" stroke="transparent" points="613.5,-10 613.5,-30 633.5,-30 633.5,-10 613.5,-10"/> <text text-anchor="start" x="637.23" y="-15.4" font-family="Times-12" font-size="14.00"> &#160;Exports</text> <g id="clust1" class="cluster"> <title>cluster_SelectModule</title> <polygon fill="none" stroke="black" stroke-dasharray="1,5" points="8,-70 8,-379.59 903,-379.59 903,-70 8,-70"/> </g> <g id="clust6" class="cluster"> <title>cluster_SelectModule_imports</title> <polygon fill="none" stroke="black" points="795,-189.59 795,-241.59 895,-241.59 895,-189.59 795,-189.59"/> </g> <g id="clust5" class="cluster"> <title>cluster_SelectModule_Select_providers</title> <polygon fill="none" stroke="black" points="185,-78 185,-241.59 787,-241.59 787,-78 185,-78"/> </g> <g id="clust2" class="cluster"> <title>cluster_SelectModule_declarations</title> <polygon fill="none" stroke="black" points="16,-189.59 16,-241.59 177,-241.59 177,-189.59 16,-189.59"/> </g> <g id="clust7" class="cluster"> <title>cluster_SelectModule_exports</title> <polygon fill="none" stroke="black" points="134,-319.59 134,-371.59 374,-371.59 374,-319.59 134,-319.59"/> </g> <!-- OptGroup --> <g id="node1" class="node"> <title>OptGroup</title> <polygon fill="#ffffb3" stroke="black" points="169.26,-233.59 96.74,-233.59 96.74,-197.59 169.26,-197.59 169.26,-233.59"/> <text text-anchor="middle" x="133" y="-211.39" font-family="Times,serif" font-size="14.00">OptGroup</text> </g> <!-- SelectModule --> <g id="node4" class="node"> <title>SelectModule</title> <polygon fill="#8dd3c7" stroke="black" points="289.76,-298.59 286.76,-302.59 265.76,-302.59 262.76,-298.59 196.24,-298.59 196.24,-262.59 289.76,-262.59 289.76,-298.59"/> <text text-anchor="middle" x="243" y="-276.39" font-family="Times,serif" font-size="14.00">SelectModule</text> </g> <!-- OptGroup&#45;&gt;SelectModule --> <g id="edge1" class="edge"> <title>OptGroup&#45;&gt;SelectModule</title> <path fill="none" stroke="black" d="M155.69,-233.61C155.69,-250.96 155.69,-274.59 155.69,-274.59 155.69,-274.59 186.02,-274.59 186.02,-274.59"/> <polygon fill="black" stroke="black" points="186.02,-278.09 196.02,-274.59 186.02,-271.09 186.02,-278.09"/> </g> <!-- Option --> <g id="node2" class="node"> <title>Option</title> <polygon fill="#ffffb3" stroke="black" points="78.39,-233.59 23.61,-233.59 23.61,-197.59 78.39,-197.59 78.39,-233.59"/> <text text-anchor="middle" x="51" y="-211.39" font-family="Times,serif" font-size="14.00">Option</text> </g> <!-- Option&#45;&gt;SelectModule --> <g id="edge2" class="edge"> <title>Option&#45;&gt;SelectModule</title> <path fill="none" stroke="black" d="M51,-233.87C51,-254.91 51,-286.59 51,-286.59 51,-286.59 186.03,-286.59 186.03,-286.59"/> <polygon fill="black" stroke="black" points="186.03,-290.09 196.03,-286.59 186.03,-283.09 186.03,-290.09"/> </g> <!-- Select --> <g id="node3" class="node"> <title>Select</title> <polygon fill="#ffffb3" stroke="black" points="380,-233.59 326,-233.59 326,-197.59 380,-197.59 380,-233.59"/> <text text-anchor="middle" x="353" y="-211.39" font-family="Times,serif" font-size="14.00">Select</text> </g> <!-- Select&#45;&gt;SelectModule --> <g id="edge3" class="edge"> <title>Select&#45;&gt;SelectModule</title> <path fill="none" stroke="black" d="M346.07,-233.61C346.07,-250.96 346.07,-274.59 346.07,-274.59 346.07,-274.59 300.01,-274.59 300.01,-274.59"/> <polygon fill="black" stroke="black" points="300.01,-271.09 290.01,-274.59 300.01,-278.09 300.01,-271.09"/> </g> <!-- OptGroup --> <g id="node7" class="node"> <title>OptGroup </title> <polygon fill="#fb8072" stroke="black" points="366.26,-363.59 289.74,-363.59 289.74,-327.59 366.26,-327.59 366.26,-363.59"/> <text text-anchor="middle" x="328" y="-341.39" font-family="Times,serif" font-size="14.00">OptGroup </text> </g> <!-- SelectModule&#45;&gt;OptGroup --> <g id="edge6" class="edge"> <title>SelectModule&#45;&gt;OptGroup </title> <path fill="none" stroke="black" stroke-dasharray="5,2" d="M281.03,-298.7C281.03,-317.93 281.03,-345.59 281.03,-345.59 281.03,-345.59 281.89,-345.59 281.89,-345.59"/> <polygon fill="black" stroke="black" points="279.65,-349.09 289.65,-345.59 279.65,-342.09 279.65,-349.09"/> </g> <!-- Option --> <g id="node8" class="node"> <title>Option </title> <polygon fill="#fb8072" stroke="black" points="272.39,-363.59 213.61,-363.59 213.61,-327.59 272.39,-327.59 272.39,-363.59"/> <text text-anchor="middle" x="243" y="-341.39" font-family="Times,serif" font-size="14.00">Option </text> </g> <!-- SelectModule&#45;&gt;Option --> <g id="edge7" class="edge"> <title>SelectModule&#45;&gt;Option </title> <path fill="none" stroke="black" stroke-dasharray="5,2" d="M243,-298.7C243,-298.7 243,-317.58 243,-317.58"/> <polygon fill="black" stroke="black" points="239.5,-317.58 243,-327.58 246.5,-317.58 239.5,-317.58"/> </g> <!-- Select --> <g id="node9" class="node"> <title>Select </title> <polygon fill="#fb8072" stroke="black" points="196,-363.59 142,-363.59 142,-327.59 196,-327.59 196,-363.59"/> <text text-anchor="middle" x="169" y="-341.39" font-family="Times,serif" font-size="14.00">Select </text> </g> <!-- SelectModule&#45;&gt;Select --> <g id="edge8" class="edge"> <title>SelectModule&#45;&gt;Select </title> <path fill="none" stroke="black" stroke-dasharray="5,2" d="M204.96,-298.7C204.96,-317.93 204.96,-345.59 204.96,-345.59 204.96,-345.59 204.09,-345.59 204.09,-345.59"/> <polygon fill="black" stroke="black" points="206.26,-342.09 196.26,-345.59 206.26,-349.09 206.26,-342.09"/> </g> <!-- { &#160;&#160;&#160;provide: NG_VALUE_ACCESSOR, useExisting: Select, multi: true } --> <g id="node5" class="node"> <title>{ &#160;&#160;&#160;provide: NG_VALUE_ACCESSOR, useExisting: Select, multi: true }</title> <ellipse fill="#fdb462" stroke="black" cx="486" cy="-127.3" rx="292.67" ry="41.09"/> <text text-anchor="middle" x="486" y="-139.9" font-family="Times,serif" font-size="14.00">{</text> <text text-anchor="middle" x="486" y="-123.1" font-family="Times,serif" font-size="14.00"> &#160;&#160;&#160;provide: NG_VALUE_ACCESSOR, useExisting: Select, multi: true</text> <text text-anchor="middle" x="486" y="-106.3" font-family="Times,serif" font-size="14.00">}</text> </g> <!-- { &#160;&#160;&#160;provide: NG_VALUE_ACCESSOR, useExisting: Select, multi: true }&#45;&gt;Select --> <g id="edge4" class="edge"> <title>{ &#160;&#160;&#160;provide: NG_VALUE_ACCESSOR, useExisting: Select, multi: true }&#45;&gt;Select</title> <path fill="none" stroke="black" d="M353,-164.23C353,-164.23 353,-187.58 353,-187.58"/> <polygon fill="black" stroke="black" points="349.5,-187.58 353,-197.58 356.5,-187.58 349.5,-187.58"/> </g> <!-- IconModule --> <g id="node6" class="node"> <title>IconModule</title> <polygon fill="#8dd3c7" stroke="black" points="887.43,-233.59 884.43,-237.59 863.43,-237.59 860.43,-233.59 802.57,-233.59 802.57,-197.59 887.43,-197.59 887.43,-233.59"/> <text text-anchor="middle" x="845" y="-211.39" font-family="Times,serif" font-size="14.00">IconModule</text> </g> <!-- IconModule&#45;&gt;SelectModule --> <g id="edge5" class="edge"> <title>IconModule&#45;&gt;SelectModule</title> <path fill="none" stroke="black" d="M845,-233.87C845,-254.91 845,-286.59 845,-286.59 845,-286.59 300.24,-286.59 300.24,-286.59"/> <polygon fill="black" stroke="black" points="300.24,-283.09 290.24,-286.59 300.24,-290.09 300.24,-283.09"/> </g> </g> </svg> </div> <i id="fullscreen" class="icon ion-ios-resize module-graph-fullscreen-btn" aria-hidden="true"></i> <div class="btn-group size-buttons"> <button id="zoom-in" class="btn btn-default btn-sm">Zoom in</button> <button id="reset" class="btn btn-default btn-sm">Reset</button> <button id="zoom-out" class="btn btn-default btn-sm">Zoom out</button> </div> </div> <script src="../js/libs/svg-pan-zoom.min.js"></script> <script src="../js/svg-pan-zoom.controls.js"></script> <ul class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a href="#info" class="nav-link" 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> </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/select/select.module.ts</code> </p> <div class="container-fluid module"> <div class="row"> <div class="col-sm-3"> <h3>Declarations<a href="https://angular.io/api/core/NgModule#declarations" target="_blank" rel="noopener noreferrer" title="Official documentation about module declarations"><span class="icon ion-ios-information-circle-outline"></span></a></h3> <ul class="list-group"> <li class="list-group-item"> <a href="../directives/OptGroup.html">OptGroup</a> </li> <li class="list-group-item"> <a href="../directives/Option.html">Option</a> </li> <li class="list-group-item"> <a href="../components/Select.html">Select</a> </li> </ul> </div> <div class="col-sm-3"> <h3>Imports<a href="https://angular.io/api/core/NgModule#imports" target="_blank" rel="noopener noreferrer" title="Official documentation about module imports"><span class="icon ion-ios-information-circle-outline"></a></h3> <ul class="list-group"> <li class="list-group-item"> <a href="../modules/IconModule.html">IconModule</a> </li> </ul> </div> <div class="col-sm-3"> <h3>Exports<a href="https://angular.io/api/core/NgModule#exports" target="_blank" rel="noopener noreferrer" title="Official documentation about module exports"><span class="icon ion-ios-information-circle-outline"></a></h3> <ul class="list-group"> <li class="list-group-item"> <a href="../directives/OptGroup.html">OptGroup</a> </li> <li class="list-group-item"> <a href="../directives/Option.html">Option</a> </li> <li class="list-group-item"> <a href="../components/Select.html">Select</a> </li> </ul> </div> </div> </div> </div> <div class="tab-pane fade tab-source-code" id="source"> <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">// modules import { NgModule } from &quot;@angular/core&quot;; import { FormsModule } from &quot;@angular/forms&quot;; import { CommonModule } from &quot;@angular/common&quot;; // imports import { Select } from &quot;./select.component&quot;; import { Option } from &quot;./option.directive&quot;; import { OptGroup } from &quot;./optgroup.directive&quot;; import { IconModule } from &quot;carbon-components-angular/icon&quot;; @NgModule({ declarations: [ Select, Option, OptGroup ], exports: [ Select, Option, OptGroup ], imports: [ CommonModule, FormsModule, IconModule ] }) export class SelectModule { } </code></pre> </div> </div> </div><div class="search-results"> <div class="has-results"> <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1> <ul class="search-results-list"></ul> </div> <div class="no-results"> <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1> </div> </div> </div> <!-- END CONTENT --> </div> </div> <label class="dark-mode-switch"> <input type="checkbox"> <span class="slider"> <svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg"> <path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path> </svg> </span> </label> <script> var COMPODOC_CURRENT_PAGE_DEPTH = 1; var COMPODOC_CURRENT_PAGE_CONTEXT = 'module'; var COMPODOC_CURRENT_PAGE_URL = 'SelectModule.html'; var MAX_SEARCH_RESULTS = 15; </script> <script> $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input'); checkToggle(darkModeState); if ($darkModeToggleSwitchers.length > 0) { for (var i = 0; i < $darkModeToggleSwitchers.length; i++) { $darkModeToggleSwitchers[i].addEventListener('change', function (event) { darkModeState = !darkModeState; toggleDarkMode(darkModeState); }); } } </script> <script src="../js/libs/custom-elements.min.js"></script> <script src="../js/libs/lit-html.js"></script> <script src="../js/menu-wc.js" defer></script> <script nomodule src="../js/menu-wc_es5.js" defer></script> <script src="../js/libs/bootstrap-native.js"></script> <script src="../js/libs/es6-shim.min.js"></script> <script src="../js/libs/EventDispatcher.js"></script> <script src="../js/libs/promise.min.js"></script> <script src="../js/libs/zepto.min.js"></script> <script src="../js/compodoc.js"></script> <script src="../js/tabs.js"></script> <script src="../js/menu.js"></script> <script src="../js/libs/clipboard.min.js"></script> <script src="../js/libs/prism.js"></script> <script src="../js/sourceCode.js"></script> <script src="../js/search/search.js"></script> <script src="../js/search/lunr.min.js"></script> <script src="../js/search/search-lunr.js"></script> <script src="../js/search/search_index.js"></script> <script src="../js/lazy-load-graphs.js"></script> <footer class="carbon"> <dds-footer-container key="footer" disable-locale-button="true" size="micro" /> </footer> <script key="8" type="module" src="https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/footer.min.js"> </script> <!-- Storybook override --> <script> document.title = "Carbon Components Angular"; </script> <script src="//1.www.s81c.com/common/stats/ibm-common.js" type="text/javascript" async="async"> </script> </body> </html>