carbon-components-angular
Version:
Next generation components
490 lines (424 loc) • 20.9 kB
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" >BreadcrumbModule</li>
</ol>
<div class="text-center module-graph-container">
<div id="module-graph-svg">
<!-- Generated by graphviz version 2.47.0 (20210316.0004)
-->
<!-- Title: dependencies Pages: 1 -->
<svg width="779pt" height="284pt"
viewBox="0.00 0.00 779.00 284.00" 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 280)">
<title>dependencies</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-280 775,-280 775,4 -4,4"/>
<text text-anchor="start" x="364.51" y="-42.4" font-family="Times-12" font-weight="bold" font-size="14.00">Legend</text>
<polygon fill="#ffffb3" stroke="transparent" points="151.5,-10 151.5,-30 171.5,-30 171.5,-10 151.5,-10"/>
<text text-anchor="start" x="175.13" y="-15.4" font-family="Times-12" font-size="14.00">  Declarations</text>
<polygon fill="#8dd3c7" stroke="transparent" points="264.5,-10 264.5,-30 284.5,-30 284.5,-10 264.5,-10"/>
<text text-anchor="start" x="288.23" y="-15.4" font-family="Times-12" font-size="14.00">  Module</text>
<polygon fill="#80b1d3" stroke="transparent" points="350.5,-10 350.5,-30 370.5,-30 370.5,-10 350.5,-10"/>
<text text-anchor="start" x="374.28" y="-15.4" font-family="Times-12" font-size="14.00">  Bootstrap</text>
<polygon fill="#fdb462" stroke="transparent" points="447.5,-10 447.5,-30 467.5,-30 467.5,-10 447.5,-10"/>
<text text-anchor="start" x="471.17" y="-15.4" font-family="Times-12" font-size="14.00">  Providers</text>
<polygon fill="#fb8072" stroke="transparent" points="543.5,-10 543.5,-30 563.5,-30 563.5,-10 543.5,-10"/>
<text text-anchor="start" x="567.23" y="-15.4" font-family="Times-12" font-size="14.00">  Exports</text>
<g id="clust1" class="cluster">
<title>cluster_BreadcrumbModule</title>
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="8,-70 8,-268 763,-268 763,-70 8,-70"/>
</g>
<g id="clust2" class="cluster">
<title>cluster_BreadcrumbModule_declarations</title>
<polygon fill="none" stroke="black" points="459,-78 459,-130 755,-130 755,-78 459,-78"/>
</g>
<g id="clust6" class="cluster">
<title>cluster_BreadcrumbModule_exports</title>
<polygon fill="none" stroke="black" points="162,-208 162,-260 464,-260 464,-208 162,-208"/>
</g>
<g id="clust5" class="cluster">
<title>cluster_BreadcrumbModule_imports</title>
<polygon fill="none" stroke="black" points="16,-78 16,-130 451,-130 451,-78 16,-78"/>
</g>
<!-- Breadcrumb -->
<g id="node1" class="node">
<title>Breadcrumb</title>
<polygon fill="#ffffb3" stroke="black" points="746.69,-122 661.31,-122 661.31,-86 746.69,-86 746.69,-122"/>
<text text-anchor="middle" x="704" y="-99.8" font-family="Times,serif" font-size="14.00">Breadcrumb</text>
</g>
<!-- BreadcrumbModule -->
<g id="node3" class="node">
<title>BreadcrumbModule</title>
<polygon fill="#8dd3c7" stroke="black" points="400.24,-187 397.24,-191 376.24,-191 373.24,-187 271.76,-187 271.76,-151 400.24,-151 400.24,-187"/>
<text text-anchor="middle" x="336" y="-164.8" font-family="Times,serif" font-size="14.00">BreadcrumbModule</text>
</g>
<!-- Breadcrumb->BreadcrumbModule -->
<g id="edge1" class="edge">
<title>Breadcrumb->BreadcrumbModule</title>
<path fill="none" stroke="black" d="M704,-122.28C704,-143.32 704,-175 704,-175 704,-175 410.52,-175 410.52,-175"/>
<polygon fill="black" stroke="black" points="410.52,-171.5 400.52,-175 410.52,-178.5 410.52,-171.5"/>
</g>
<!-- BreadcrumbItemComponent -->
<g id="node2" class="node">
<title>BreadcrumbItemComponent</title>
<polygon fill="#ffffb3" stroke="black" points="643.18,-122 466.82,-122 466.82,-86 643.18,-86 643.18,-122"/>
<text text-anchor="middle" x="555" y="-99.8" font-family="Times,serif" font-size="14.00">BreadcrumbItemComponent</text>
</g>
<!-- BreadcrumbItemComponent->BreadcrumbModule -->
<g id="edge2" class="edge">
<title>BreadcrumbItemComponent->BreadcrumbModule</title>
<path fill="none" stroke="black" d="M555,-122.02C555,-139.37 555,-163 555,-163 555,-163 410.52,-163 410.52,-163"/>
<polygon fill="black" stroke="black" points="410.52,-159.5 400.52,-163 410.52,-166.5 410.52,-159.5"/>
</g>
<!-- Breadcrumb -->
<g id="node8" class="node">
<title>Breadcrumb </title>
<polygon fill="#fb8072" stroke="black" points="456.19,-252 367.81,-252 367.81,-216 456.19,-216 456.19,-252"/>
<text text-anchor="middle" x="412" y="-229.8" font-family="Times,serif" font-size="14.00">Breadcrumb </text>
</g>
<!-- BreadcrumbModule->Breadcrumb -->
<g id="edge7" class="edge">
<title>BreadcrumbModule->Breadcrumb </title>
<path fill="none" stroke="black" stroke-dasharray="5,2" d="M384.01,-187.11C384.01,-187.11 384.01,-205.99 384.01,-205.99"/>
<polygon fill="black" stroke="black" points="380.51,-205.99 384.01,-215.99 387.51,-205.99 380.51,-205.99"/>
</g>
<!-- BreadcrumbItemComponent -->
<g id="node9" class="node">
<title>BreadcrumbItemComponent </title>
<polygon fill="#fb8072" stroke="black" points="349.68,-252 170.32,-252 170.32,-216 349.68,-216 349.68,-252"/>
<text text-anchor="middle" x="260" y="-229.8" font-family="Times,serif" font-size="14.00">BreadcrumbItemComponent </text>
</g>
<!-- BreadcrumbModule->BreadcrumbItemComponent -->
<g id="edge8" class="edge">
<title>BreadcrumbModule->BreadcrumbItemComponent </title>
<path fill="none" stroke="black" stroke-dasharray="5,2" d="M310.73,-187.11C310.73,-187.11 310.73,-205.99 310.73,-205.99"/>
<polygon fill="black" stroke="black" points="307.23,-205.99 310.73,-215.99 314.23,-205.99 307.23,-205.99"/>
</g>
<!-- ButtonModule -->
<g id="node4" class="node">
<title>ButtonModule</title>
<polygon fill="#8dd3c7" stroke="black" points="442.67,-122 439.67,-126 418.67,-126 415.67,-122 345.33,-122 345.33,-86 442.67,-86 442.67,-122"/>
<text text-anchor="middle" x="394" y="-99.8" font-family="Times,serif" font-size="14.00">ButtonModule</text>
</g>
<!-- ButtonModule->BreadcrumbModule -->
<g id="edge3" class="edge">
<title>ButtonModule->BreadcrumbModule</title>
<path fill="none" stroke="black" d="M372.77,-122.11C372.77,-122.11 372.77,-140.99 372.77,-140.99"/>
<polygon fill="black" stroke="black" points="369.27,-140.99 372.77,-150.99 376.27,-140.99 369.27,-140.99"/>
</g>
<!-- DialogModule -->
<g id="node5" class="node">
<title>DialogModule</title>
<polygon fill="#8dd3c7" stroke="black" points="326.65,-122 323.65,-126 302.65,-126 299.65,-122 229.35,-122 229.35,-86 326.65,-86 326.65,-122"/>
<text text-anchor="middle" x="278" y="-99.8" font-family="Times,serif" font-size="14.00">DialogModule</text>
</g>
<!-- DialogModule->BreadcrumbModule -->
<g id="edge4" class="edge">
<title>DialogModule->BreadcrumbModule</title>
<path fill="none" stroke="black" d="M299.23,-122.11C299.23,-122.11 299.23,-140.99 299.23,-140.99"/>
<polygon fill="black" stroke="black" points="295.73,-140.99 299.23,-150.99 302.73,-140.99 295.73,-140.99"/>
</g>
<!-- I18nModule -->
<g id="node6" class="node">
<title>I18nModule</title>
<polygon fill="#8dd3c7" stroke="black" points="211.71,-122 208.71,-126 187.71,-126 184.71,-122 126.29,-122 126.29,-86 211.71,-86 211.71,-122"/>
<text text-anchor="middle" x="169" y="-99.8" font-family="Times,serif" font-size="14.00">I18nModule</text>
</g>
<!-- I18nModule->BreadcrumbModule -->
<g id="edge5" class="edge">
<title>I18nModule->BreadcrumbModule</title>
<path fill="none" stroke="black" d="M190.88,-122.02C190.88,-139.37 190.88,-163 190.88,-163 190.88,-163 261.5,-163 261.5,-163"/>
<polygon fill="black" stroke="black" points="261.5,-166.5 271.5,-163 261.5,-159.5 261.5,-166.5"/>
</g>
<!-- IconModule -->
<g id="node7" class="node">
<title>IconModule</title>
<polygon fill="#8dd3c7" stroke="black" points="108.43,-122 105.43,-126 84.43,-126 81.43,-122 23.57,-122 23.57,-86 108.43,-86 108.43,-122"/>
<text text-anchor="middle" x="66" y="-99.8" font-family="Times,serif" font-size="14.00">IconModule</text>
</g>
<!-- IconModule->BreadcrumbModule -->
<g id="edge6" class="edge">
<title>IconModule->BreadcrumbModule</title>
<path fill="none" stroke="black" d="M66,-122.28C66,-143.32 66,-175 66,-175 66,-175 261.67,-175 261.67,-175"/>
<polygon fill="black" stroke="black" points="261.67,-178.5 271.67,-175 261.67,-171.5 261.67,-178.5"/>
</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/breadcrumb/breadcrumb.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="../components/Breadcrumb.html">Breadcrumb</a>
</li>
<li class="list-group-item">
<a href="../components/BreadcrumbItemComponent.html">BreadcrumbItemComponent</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/ButtonModule.html">ButtonModule</a>
</li>
<li class="list-group-item">
<a href="../modules/DialogModule.html">DialogModule</a>
</li>
<li class="list-group-item">
<a href="../modules/I18nModule.html">I18nModule</a>
</li>
<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="../components/Breadcrumb.html">Breadcrumb</a>
</li>
<li class="list-group-item">
<a href="../components/BreadcrumbItemComponent.html">BreadcrumbItemComponent</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">import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { DialogModule } from "carbon-components-angular/dialog";
import { I18nModule } from "carbon-components-angular/i18n";
import { Breadcrumb } from "./breadcrumb.component";
import { BreadcrumbItemComponent } from "./breadcrumb-item.component";
import { ButtonModule } from "carbon-components-angular/button";
import { IconModule } from "carbon-components-angular/icon";
@NgModule({
declarations: [
Breadcrumb,
BreadcrumbItemComponent
],
exports: [
Breadcrumb,
BreadcrumbItemComponent
],
imports: [
CommonModule,
ButtonModule,
DialogModule,
I18nModule,
IconModule
]
})
export class BreadcrumbModule { }
</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 = 'BreadcrumbModule.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>