carbon-components-angular
Version:
Next generation components
423 lines (358 loc) • 17.3 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" >SliderModule</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="750pt" height="396pt"
viewBox="0.00 0.00 750.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 746,-391.59 746,4 -4,4"/>
<text text-anchor="start" x="350.01" y="-42.4" font-family="Times-12" font-weight="bold" font-size="14.00">Legend</text>
<polygon fill="#ffffb3" stroke="transparent" points="137,-10 137,-30 157,-30 157,-10 137,-10"/>
<text text-anchor="start" x="160.63" y="-15.4" font-family="Times-12" font-size="14.00">  Declarations</text>
<polygon fill="#8dd3c7" stroke="transparent" points="250,-10 250,-30 270,-30 270,-10 250,-10"/>
<text text-anchor="start" x="273.73" y="-15.4" font-family="Times-12" font-size="14.00">  Module</text>
<polygon fill="#80b1d3" stroke="transparent" points="336,-10 336,-30 356,-30 356,-10 336,-10"/>
<text text-anchor="start" x="359.78" y="-15.4" font-family="Times-12" font-size="14.00">  Bootstrap</text>
<polygon fill="#fdb462" stroke="transparent" points="433,-10 433,-30 453,-30 453,-10 433,-10"/>
<text text-anchor="start" x="456.67" y="-15.4" font-family="Times-12" font-size="14.00">  Providers</text>
<polygon fill="#fb8072" stroke="transparent" points="529,-10 529,-30 549,-30 549,-10 529,-10"/>
<text text-anchor="start" x="552.73" y="-15.4" font-family="Times-12" font-size="14.00">  Exports</text>
<g id="clust1" class="cluster">
<title>cluster_SliderModule</title>
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="8,-70 8,-379.59 734,-379.59 734,-70 8,-70"/>
</g>
<g id="clust4" class="cluster">
<title>cluster_SliderModule_imports</title>
<polygon fill="none" stroke="black" points="624,-189.59 624,-241.59 726,-241.59 726,-189.59 624,-189.59"/>
</g>
<g id="clust3" class="cluster">
<title>cluster_SliderModule_Slider_providers</title>
<polygon fill="none" stroke="black" points="16,-78 16,-241.59 616,-241.59 616,-78 16,-78"/>
</g>
<g id="clust5" class="cluster">
<title>cluster_SliderModule_exports</title>
<polygon fill="none" stroke="black" points="550,-319.59 550,-371.59 620,-371.59 620,-319.59 550,-319.59"/>
</g>
<!-- Slider -->
<g id="node1" class="node">
<title>Slider</title>
<polygon fill="#ffffb3" stroke="black" points="433,-233.59 379,-233.59 379,-197.59 433,-197.59 433,-233.59"/>
<text text-anchor="middle" x="406" y="-211.39" font-family="Times,serif" font-size="14.00">Slider</text>
</g>
<!-- SliderModule -->
<g id="node2" class="node">
<title>SliderModule</title>
<polygon fill="#8dd3c7" stroke="black" points="631.49,-298.59 628.49,-302.59 607.49,-302.59 604.49,-298.59 538.51,-298.59 538.51,-262.59 631.49,-262.59 631.49,-298.59"/>
<text text-anchor="middle" x="585" y="-276.39" font-family="Times,serif" font-size="14.00">SliderModule</text>
</g>
<!-- Slider->SliderModule -->
<g id="edge1" class="edge">
<title>Slider->SliderModule</title>
<path fill="none" stroke="black" d="M406,-233.7C406,-252.93 406,-280.59 406,-280.59 406,-280.59 528.44,-280.59 528.44,-280.59"/>
<polygon fill="black" stroke="black" points="528.44,-284.09 538.44,-280.59 528.44,-277.09 528.44,-284.09"/>
</g>
<!-- Slider -->
<g id="node5" class="node">
<title>Slider </title>
<polygon fill="#fb8072" stroke="black" points="612,-363.59 558,-363.59 558,-327.59 612,-327.59 612,-363.59"/>
<text text-anchor="middle" x="585" y="-341.39" font-family="Times,serif" font-size="14.00">Slider </text>
</g>
<!-- SliderModule->Slider -->
<g id="edge4" class="edge">
<title>SliderModule->Slider </title>
<path fill="none" stroke="black" stroke-dasharray="5,2" d="M585,-298.7C585,-298.7 585,-317.58 585,-317.58"/>
<polygon fill="black" stroke="black" points="581.5,-317.58 585,-327.58 588.5,-317.58 581.5,-317.58"/>
</g>
<!-- {
   provide: NG_VALUE_ACCESSOR, useExisting: Slider, multi: true
} -->
<g id="node3" class="node">
<title>{
   provide: NG_VALUE_ACCESSOR, useExisting: Slider, multi: true
}</title>
<ellipse fill="#fdb462" stroke="black" cx="316" cy="-127.3" rx="292.09" ry="41.09"/>
<text text-anchor="middle" x="316" y="-139.9" font-family="Times,serif" font-size="14.00">{</text>
<text text-anchor="middle" x="316" y="-123.1" font-family="Times,serif" font-size="14.00">    provide: NG_VALUE_ACCESSOR, useExisting: Slider, multi: true</text>
<text text-anchor="middle" x="316" y="-106.3" font-family="Times,serif" font-size="14.00">}</text>
</g>
<!-- {
   provide: NG_VALUE_ACCESSOR, useExisting: Slider, multi: true
}->Slider -->
<g id="edge2" class="edge">
<title>{
   provide: NG_VALUE_ACCESSOR, useExisting: Slider, multi: true
}->Slider</title>
<path fill="none" stroke="black" d="M406,-166.79C406,-166.79 406,-187.33 406,-187.33"/>
<polygon fill="black" stroke="black" points="402.5,-187.33 406,-197.33 409.5,-187.33 402.5,-187.33"/>
</g>
<!-- UtilsModule -->
<g id="node4" class="node">
<title>UtilsModule</title>
<polygon fill="#8dd3c7" stroke="black" points="718.27,-233.59 715.27,-237.59 694.27,-237.59 691.27,-233.59 631.73,-233.59 631.73,-197.59 718.27,-197.59 718.27,-233.59"/>
<text text-anchor="middle" x="675" y="-211.39" font-family="Times,serif" font-size="14.00">UtilsModule</text>
</g>
<!-- UtilsModule->SliderModule -->
<g id="edge3" class="edge">
<title>UtilsModule->SliderModule</title>
<path fill="none" stroke="black" d="M631.48,-215.59C624.64,-215.59 619.77,-215.59 619.77,-215.59 619.77,-215.59 619.77,-252.48 619.77,-252.48"/>
<polygon fill="black" stroke="black" points="616.27,-252.48 619.77,-262.48 623.27,-252.48 616.27,-252.48"/>
</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/slider/slider.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/Slider.html">Slider</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/UtilsModule.html">UtilsModule</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/Slider.html">Slider</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 { Slider } from "./slider.component";
import { UtilsModule } from "carbon-components-angular/utils";
@NgModule({
declarations: [Slider],
exports: [Slider],
imports: [
CommonModule,
UtilsModule
]
})
export class SliderModule {}
</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 = 'SliderModule.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>