UNPKG

carbon-components-angular

Version:
2,073 lines 116 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">
    </head>
    <body>

        <div class="navbar navbar-default navbar-fixed-top visible-xs">
            <a href="../" class="navbar-brand">carbon-components-angular documentation</a>
            <button type="button" class="btn btn-default btn-menu fa fa-bars" 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>
            <nav>
            
                <ul class="list">
            
                    <li class="title">
                        <a href="../index.html">carbon-components-angular documentation</a>
                    </li>
            
                    <li class="divider"></li>
            
            
                    <li class="chapter">
                        <a data-type="chapter-link" href="../index.html"><span class="fa fa-home"></span>Getting started</a>
                        <ul class="links">
                                <li class="link">
                                    <a 
                                        
                                         href="../overview.html" 
                                         href="../overview.html" 
                                        >
                                        <span class="fa fa-th"></span>Overview
                                    </a>
                                </li>
                                <li class="link">
                                  <a href="../index.html" ><span class="fa fa-file-text-o"></span>README</a>
                                </li>
                                <li class="link">
                                        <a href="../changelog.html"
                                    >
                                        <span class="fa fa-file-text-o"></span>CHANGELOG
                                    </a>
                                </li>
                                <li class="link">
                                        <a href="../license.html"
                                    >
                                        <span class="fa fa-file-text-o"></span>LICENSE
                                    </a>
                                </li>
                        </ul>
                    </li>
            
            
                    <li class="chapter">
                        <a data-type="chapter-link" href="../modules.html" >
                            <div class="menu-toggler linked" data-toggle="collapse"
                                    data-target="#xs-modules-links"
                            >
                                <span class="fa fa-archive"></span>
                                <span class="link-name">Modules</span>
                                <span class="fa fa-angle-down"></span>
                            </div>
                        </a>
                        <ul class="links collapse "
                                id="xs-modules-links"
                            >
                                <li class="link">
                                    <a href="../modules/AccordionModule.html" >AccordionModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/BannerModule.html" >BannerModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/ButtonModule.html" >ButtonModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/CalendarModule.html" >CalendarModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/CheckboxModule.html" >CheckboxModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/CodeSnippetModule.html" >CodeSnippetModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/ComboBoxModule.html" >ComboBoxModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/ContentSwitcherModule.html" >ContentSwitcherModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/DialogModule.html" >DialogModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/DropdownModule.html" >DropdownModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/I18nModule.html" >I18nModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/IconModule.html" >IconModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/InputModule.html" >InputModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/LinkModule.html" >LinkModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/ListGroupModule.html" >ListGroupModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/LoadingModule.html" >LoadingModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/ModalModule.html" >ModalModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/NFormsModule.html" >NFormsModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/NotificationModule.html" >NotificationModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/PaginationModule.html" >PaginationModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/PillInputModule.html" >PillInputModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/PlaceholderModule.html" >PlaceholderModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/ProgressIndicatorModule.html" >ProgressIndicatorModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/RadioModule.html" >RadioModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/SampleModule.html" >SampleModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/SelectModule.html" >SelectModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/StaticIconModule.html" >StaticIconModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/SwitchModule.html" >SwitchModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/TableModule.html" >TableModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/TabsModule.html" >TabsModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/TilesModule.html" >TilesModule</a>
                                </li>
                                <li class="link">
                                    <a href="../modules/ToggleModule.html" >ToggleModule</a>
                                </li>
                        </ul>
                    </li>
            
                    <li class="chapter">
                        <div class="simple menu-toggler" data-toggle="collapse"
                                data-target="#xs-components-links"
                            >
                            <span class="fa fa-cogs"></span>
                            <span>Components</span>
                            <span class="fa fa-angle-down"></span>
                        </div>
                        <ul class="links collapse "
                                id="xs-components-links"
                            >
                                <li class="link">
                                    <a href="../components/Accordion.html" >Accordion</a>
                                </li>
                                <li class="link">
                                    <a href="../components/AccordionItem.html" >AccordionItem</a>
                                </li>
                                <li class="link">
                                    <a href="../components/AlertModal.html" >AlertModal</a>
                                </li>
                                <li class="link">
                                    <a href="../components/AlertModalStory.html" >AlertModalStory</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Banner.html" >Banner</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Calendar.html" >Calendar</a>
                                </li>
                                <li class="link">
                                    <a href="../components/CalendarHeader.html" >CalendarHeader</a>
                                </li>
                                <li class="link">
                                    <a href="../components/CalendarMonth.html" >CalendarMonth</a>
                                </li>
                                <li class="link">
                                    <a href="../components/CalendarMonths.html" >CalendarMonths</a>
                                </li>
                                <li class="link">
                                    <a href="../components/CalendarQuarter.html" >CalendarQuarter</a>
                                </li>
                                <li class="link">
                                    <a href="../components/CalendarYear.html" >CalendarYear</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Checkbox.html" >Checkbox</a>
                                </li>
                                <li class="link">
                                    <a href="../components/ClickableTile.html" >ClickableTile</a>
                                </li>
                                <li class="link">
                                    <a href="../components/CodeSnippet.html" >CodeSnippet</a>
                                </li>
                                <li class="link">
                                    <a href="../components/ComboBox.html" >ComboBox</a>
                                </li>
                                <li class="link">
                                    <a href="../components/ContentSwitcher.html" >ContentSwitcher</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Dialog.html" >Dialog</a>
                                </li>
                                <li class="link">
                                    <a href="../components/DialogPlaceholder.html" >DialogPlaceholder</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Dropdown.html" >Dropdown</a>
                                </li>
                                <li class="link">
                                    <a href="../components/DropdownList.html" >DropdownList</a>
                                </li>
                                <li class="link">
                                    <a href="../components/DynamicTableStory.html" >DynamicTableStory</a>
                                </li>
                                <li class="link">
                                    <a href="../components/ExpansionTableStory.html" >ExpansionTableStory</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Icon.html" >Icon</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Label.html" >Label</a>
                                </li>
                                <li class="link">
                                    <a href="../components/ListGroup.html" >ListGroup</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Loading.html" >Loading</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Modal.html" >Modal</a>
                                </li>
                                <li class="link">
                                    <a href="../components/ModalFooter.html" >ModalFooter</a>
                                </li>
                                <li class="link">
                                    <a href="../components/ModalHeader.html" >ModalHeader</a>
                                </li>
                                <li class="link">
                                    <a href="../components/ModalPlaceholder.html" >ModalPlaceholder</a>
                                </li>
                                <li class="link">
                                    <a href="../components/ModalStory.html" >ModalStory</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Notification.html" >Notification</a>
                                </li>
                                <li class="link">
                                    <a href="../components/NotificationStory.html" >NotificationStory</a>
                                </li>
                                <li class="link">
                                    <a href="../components/OverflowMenu.html" >OverflowMenu</a>
                                </li>
                                <li class="link">
                                    <a href="../components/OverflowMenuOption.html" >OverflowMenuOption</a>
                                </li>
                                <li class="link">
                                    <a href="../components/OverflowMenuPane.html" >OverflowMenuPane</a>
                                </li>
                                <li class="link">
                                    <a href="../components/OverflowTableStory.html" >OverflowTableStory</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Overlay.html" >Overlay</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Pagination.html" >Pagination</a>
                                </li>
                                <li class="link">
                                    <a href="../components/PaginationStory.html" >PaginationStory</a>
                                </li>
                                <li class="link">
                                    <a href="../components/PaginationTableStory.html" >PaginationTableStory</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Pill.html" >Pill</a>
                                </li>
                                <li class="link">
                                    <a href="../components/PillInput.html" >PillInput</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Placeholder.html" >Placeholder</a>
                                </li>
                                <li class="link">
                                    <a href="../components/ProgressIndicator.html" >ProgressIndicator</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Radio.html" >Radio</a>
                                </li>
                                <li class="link">
                                    <a href="../components/RadioGroup.html" >RadioGroup</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Sample.html" >Sample</a>
                                </li>
                                <li class="link">
                                    <a href="../components/SampleModal.html" >SampleModal</a>
                                </li>
                                <li class="link">
                                    <a href="../components/SampleSub.html" >SampleSub</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Select.html" >Select</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Sprite.html" >Sprite</a>
                                </li>
                                <li class="link">
                                    <a href="../components/StaticIcon.html" >StaticIcon</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Switch.html" >Switch</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Tab.html" >Tab</a>
                                </li>
                                <li class="link">
                                    <a href="../components/TabHeaders.html" >TabHeaders</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Table.html" >Table</a>
                                </li>
                                <li class="link">
                                    <a href="../components/TableStory.html" >TableStory</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Tabs.html" >Tabs</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Tile.html" >Tile</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Toast.html" >Toast</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Toast.html" >Toast</a>
                                </li>
                                <li class="link">
                                    <a href="../components/ToastStory.html" >ToastStory</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Toggle.html" >Toggle</a>
                                </li>
                                <li class="link">
                                    <a href="../components/Tooltip.html" >Tooltip</a>
                                </li>
                        </ul>
                    </li>
            
                    <li class="chapter">
                        <div class="simple menu-toggler" data-toggle="collapse"
                                data-target="#xs-directives-links"
                            >
                            <span class="fa fa-code"></span>
                            <span>Directives</span>
                            <span class="fa fa-angle-down"></span>
                        </div>
                        <ul class="links collapse "
                                id="xs-directives-links"
                            >
                                <li class="link">
                                    <a href="../directives/Button.html" >Button</a>
                                </li>
                                <li class="link">
                                    <a href="../directives/ContentSwitcherOption.html" >ContentSwitcherOption</a>
                                </li>
                                <li class="link">
                                    <a href="../directives/DialogDirective.html" >DialogDirective</a>
                                </li>
                                <li class="link">
                                    <a href="../directives/EllipsisTooltip.html" >EllipsisTooltip</a>
                                </li>
                                <li class="link">
                                    <a href="../directives/Link.html" >Link</a>
                                </li>
                                <li class="link">
                                    <a href="../directives/OptGroup.html" >OptGroup</a>
                                </li>
                                <li class="link">
                                    <a href="../directives/Option.html" >Option</a>
                                </li>
                                <li class="link">
                                    <a href="../directives/OverflowMenuDirective.html" >OverflowMenuDirective</a>
                                </li>
                                <li class="link">
                                    <a href="../directives/ScrollableList.html" >ScrollableList</a>
                                </li>
                                <li class="link">
                                    <a href="../directives/TextArea.html" >TextArea</a>
                                </li>
                                <li class="link">
                                    <a href="../directives/TextInput.html" >TextInput</a>
                                </li>
                                <li class="link">
                                    <a href="../directives/TooltipDirective.html" >TooltipDirective</a>
                                </li>
                        </ul>
                    </li>
            
                    <li class="chapter">
                        <div class="simple menu-toggler" data-toggle="collapse"
                                data-target="#xs-classes-links"
                            >
                            <span class="fa fa-file-code-o"></span>
                            <span>Classes</span>
                            <span class="fa fa-angle-down"></span>
                        </div>
                        <ul class="links collapse "
                                id="xs-classes-links"
                            >
                                <li class="link">
                                    <a href="../classes/AbstractDropdownView.html" >AbstractDropdownView</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/BaseModal.html" >BaseModal</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/CheckboxChange.html" >CheckboxChange</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/CustomHeaderItem.html" >CustomHeaderItem</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/DateTimeModel.html" >DateTimeModel</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/ModalContainer.html" >ModalContainer</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/PaginationModel.html" >PaginationModel</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/RadioChange.html" >RadioChange</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/SampleBase.html" >SampleBase</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/SwitchChange.html" >SwitchChange</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/TableHeaderItem.html" >TableHeaderItem</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/TableItem.html" >TableItem</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/TableModel.html" >TableModel</a>
                                </li>
                                <li class="link">
                                    <a href="../classes/ToggleChange.html" >ToggleChange</a>
                                </li>
                        </ul>
                    </li>
            
                    <li class="chapter">
                        <div class="simple menu-toggler" data-toggle="collapse"
                                data-target="#xs-injectables-links"
                            >
                            <span class="fa fa-long-arrow-down"></span>
                            <span>Injectables</span>
                            <span class="fa fa-angle-down"></span>
                        </div>
                        <ul class="links collapse "
                                id="xs-injectables-links"
                            >
                                <li class="link">
                                    <a href="../injectables/BannerService.html" >BannerService</a>
                                </li>
                                <li class="link">
                                    <a href="../injectables/DialogService.html" >DialogService</a>
                                </li>
                                <li class="link">
                                    <a href="../injectables/I18n.html" >I18n</a>
                                </li>
                                <li class="link">
                                    <a href="../injectables/IconService.html"  data-type="entity-link" class="active" >IconService</a>
                                </li>
                                <li class="link">
                                    <a href="../injectables/ModalService.html" >ModalService</a>
                                </li>
                                <li class="link">
                                    <a href="../injectables/NotificationDisplayService.html" >NotificationDisplayService</a>
                                </li>
                                <li class="link">
                                    <a href="../injectables/NotificationService.html" >NotificationService</a>
                                </li>
                                <li class="link">
                                    <a href="../injectables/PlaceholderService.html" >PlaceholderService</a>
                                </li>
                        </ul>
                    </li>
            
            
                    <li class="chapter">
                        <div class="simple menu-toggler" data-toggle="collapse"
                                data-target="#xs-interfaces-links"
                            >
                            <span class="fa fa-info"></span>
                            <span>Interfaces</span>
                            <span class="fa fa-angle-down"></span>
                        </div>
                        <ul class="links collapse "
                                id="xs-interfaces-links"
                            >
                                <li class="link">
                                    <a href="../interfaces/AbsolutePosition.html" >AbsolutePosition</a>
                                </li>
                                <li class="link">
                                    <a href="../interfaces/AlertModalData.html" >AlertModalData</a>
                                </li>
                                <li class="link">
                                    <a href="../interfaces/BannerContent.html" >BannerContent</a>
                                </li>
                                <li class="link">
                                    <a href="../interfaces/DialogConfig.html" >DialogConfig</a>
                                </li>
                                <li class="link">
                                    <a href="../interfaces/ListItem.html" >ListItem</a>
                                </li>
                                <li class="link">
                                    <a href="../interfaces/ModalButton.html" >ModalButton</a>
                                </li>
                                <li class="link">
                                    <a href="../interfaces/NotificationContent.html" >NotificationContent</a>
                                </li>
                                <li class="link">
                                    <a href="../interfaces/NotificationContent.html" >NotificationContent</a>
                                </li>
                                <li class="link">
                                    <a href="../interfaces/SampleInterface.html" >SampleInterface</a>
                                </li>
                                <li class="link">
                                    <a href="../interfaces/SizeMap.html" >SizeMap</a>
                                </li>
                                <li class="link">
                                    <a href="../interfaces/ToastContent.html" >ToastContent</a>
                                </li>
                                <li class="link">
                                    <a href="../interfaces/ToastContent.html" >ToastContent</a>
                                </li>
                        </ul>
                    </li>
            
            
                    <li class="chapter">
                        <div class="simple menu-toggler" data-toggle="collapse"
                                data-target="#xs-miscellaneous-links"
                            >
                            <span class="fa fa-cubes"></span>
                            <span>Miscellaneous</span>
                            <span class="fa fa-angle-down"></span>
                        </div>
                        <ul class="links collapse "
                                id="xs-miscellaneous-links"
                            >
                                <li class="link">
                                  <a href="../miscellaneous/enumerations.html" data-type="entity-link" >Enums</a>
                                </li>
                                <li class="link">
                                  <a href="../miscellaneous/functions.html" data-type="entity-link" >Functions</a>
                                </li>
                                <li class="link">
                                  <a href="../miscellaneous/typealiases.html" data-type="entity-link" >Type aliases</a>
                                </li>
                                <li class="link">
                                  <a href="../miscellaneous/variables.html" data-type="entity-link" >Variables</a>
                                </li>
                        </ul>
                    </li>
            
            
                    <li class="chapter">
                        <a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
                    </li>
            
                    <li class="divider"></li>
                    <li class="copyright">
                            Documentation generated using <a href="https://compodoc.github.io/website/" target="_blank">
                                        <img src="..//images/compodoc-vectorise.svg" class="img-responsive">
                            </a>
                    </li>
            
                </ul>
            
            </nav>
        </div>

        <div class="container-fluid main">
           <div class="row main">
               <div class="hidden-xs menu">
                   <nav>
                   
                       <ul class="list">
                   
                           <li class="title">
                               <a href="../index.html">carbon-components-angular documentation</a>
                           </li>
                   
                           <li class="divider"></li>
                   
                               <div id="book-search-input" role="search">
                                   <input type="text" placeholder="Type to search">
                               </div>
                   
                           <li class="chapter">
                               <a data-type="chapter-link" href="../index.html"><span class="fa fa-home"></span>Getting started</a>
                               <ul class="links">
                                       <li class="link">
                                           <a 
                                               
                                                href="../overview.html" 
                                                href="../overview.html" 
                                               >
                                               <span class="fa fa-th"></span>Overview
                                           </a>
                                       </li>
                                       <li class="link">
                                         <a href="../index.html" ><span class="fa fa-file-text-o"></span>README</a>
                                       </li>
                                       <li class="link">
                                               <a href="../changelog.html"
                                           >
                                               <span class="fa fa-file-text-o"></span>CHANGELOG
                                           </a>
                                       </li>
                                       <li class="link">
                                               <a href="../license.html"
                                           >
                                               <span class="fa fa-file-text-o"></span>LICENSE
                                           </a>
                                       </li>
                               </ul>
                           </li>
                   
                   
                           <li class="chapter">
                               <a data-type="chapter-link" href="../modules.html" >
                                   <div class="menu-toggler linked" data-toggle="collapse"
                                           data-target="#modules-links"
                                   >
                                       <span class="fa fa-archive"></span>
                                       <span class="link-name">Modules</span>
                                       <span class="fa fa-angle-down"></span>
                                   </div>
                               </a>
                               <ul class="links collapse "
                                       id="modules-links"
                   >
                                       <li class="link">
                                           <a href="../modules/AccordionModule.html" >AccordionModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/BannerModule.html" >BannerModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/ButtonModule.html" >ButtonModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/CalendarModule.html" >CalendarModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/CheckboxModule.html" >CheckboxModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/CodeSnippetModule.html" >CodeSnippetModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/ComboBoxModule.html" >ComboBoxModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/ContentSwitcherModule.html" >ContentSwitcherModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/DialogModule.html" >DialogModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/DropdownModule.html" >DropdownModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/I18nModule.html" >I18nModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/IconModule.html" >IconModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/InputModule.html" >InputModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/LinkModule.html" >LinkModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/ListGroupModule.html" >ListGroupModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/LoadingModule.html" >LoadingModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/ModalModule.html" >ModalModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/NFormsModule.html" >NFormsModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/NotificationModule.html" >NotificationModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/PaginationModule.html" >PaginationModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/PillInputModule.html" >PillInputModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/PlaceholderModule.html" >PlaceholderModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/ProgressIndicatorModule.html" >ProgressIndicatorModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/RadioModule.html" >RadioModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/SampleModule.html" >SampleModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/SelectModule.html" >SelectModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/StaticIconModule.html" >StaticIconModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/SwitchModule.html" >SwitchModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/TableModule.html" >TableModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/TabsModule.html" >TabsModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/TilesModule.html" >TilesModule</a>
                                       </li>
                                       <li class="link">
                                           <a href="../modules/ToggleModule.html" >ToggleModule</a>
                                       </li>
                               </ul>
                           </li>
                   
                           <li class="chapter">
                               <div class="simple menu-toggler" data-toggle="collapse"
                                       data-target="#components-links"
                   >
                                   <span class="fa fa-cogs"></span>
                                   <span>Components</span>
                                   <span class="fa fa-angle-down"></span>
                               </div>
                               <ul class="links collapse "
                                       id="components-links"
                   >
                                       <li class="link">
                                           <a href="../components/Accordion.html" >Accordion</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/AccordionItem.html" >AccordionItem</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/AlertModal.html" >AlertModal</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/AlertModalStory.html" >AlertModalStory</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Banner.html" >Banner</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Calendar.html" >Calendar</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/CalendarHeader.html" >CalendarHeader</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/CalendarMonth.html" >CalendarMonth</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/CalendarMonths.html" >CalendarMonths</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/CalendarQuarter.html" >CalendarQuarter</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/CalendarYear.html" >CalendarYear</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Checkbox.html" >Checkbox</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/ClickableTile.html" >ClickableTile</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/CodeSnippet.html" >CodeSnippet</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/ComboBox.html" >ComboBox</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/ContentSwitcher.html" >ContentSwitcher</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Dialog.html" >Dialog</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/DialogPlaceholder.html" >DialogPlaceholder</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Dropdown.html" >Dropdown</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/DropdownList.html" >DropdownList</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/DynamicTableStory.html" >DynamicTableStory</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/ExpansionTableStory.html" >ExpansionTableStory</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Icon.html" >Icon</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Label.html" >Label</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/ListGroup.html" >ListGroup</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Loading.html" >Loading</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Modal.html" >Modal</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/ModalFooter.html" >ModalFooter</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/ModalHeader.html" >ModalHeader</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/ModalPlaceholder.html" >ModalPlaceholder</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/ModalStory.html" >ModalStory</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Notification.html" >Notification</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/NotificationStory.html" >NotificationStory</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/OverflowMenu.html" >OverflowMenu</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/OverflowMenuOption.html" >OverflowMenuOption</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/OverflowMenuPane.html" >OverflowMenuPane</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/OverflowTableStory.html" >OverflowTableStory</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Overlay.html" >Overlay</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Pagination.html" >Pagination</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/PaginationStory.html" >PaginationStory</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/PaginationTableStory.html" >PaginationTableStory</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Pill.html" >Pill</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/PillInput.html" >PillInput</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Placeholder.html" >Placeholder</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/ProgressIndicator.html" >ProgressIndicator</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Radio.html" >Radio</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/RadioGroup.html" >RadioGroup</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Sample.html" >Sample</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/SampleModal.html" >SampleModal</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/SampleSub.html" >SampleSub</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Select.html" >Select</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Sprite.html" >Sprite</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/StaticIcon.html" >StaticIcon</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Switch.html" >Switch</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Tab.html" >Tab</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/TabHeaders.html" >TabHeaders</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Table.html" >Table</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/TableStory.html" >TableStory</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Tabs.html" >Tabs</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Tile.html" >Tile</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Toast.html" >Toast</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Toast.html" >Toast</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/ToastStory.html" >ToastStory</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Toggle.html" >Toggle</a>
                                       </li>
                                       <li class="link">
                                           <a href="../components/Tooltip.html" >Tooltip</a>
                                       </li>
                               </ul>
                           </li>
                   
                           <li class="chapter">
                               <div class="simple menu-toggler" data-toggle="collapse"
                                       data-target="#directives-links"
                   >
                                   <span class="fa fa-code"></span>
                                   <span>Directives</span>
                                   <span class="fa fa-angle-down"></span>
                               </div>
                               <ul class="links collapse "
                                       id="directives-links"
                   >
                                       <li class="link">
                                           <a href="../directives/Button.html" >Button</a>
                                       </li>
                                       <li class="link">
                                           <a href="../directives/ContentSwitcherOption.html" >ContentSwitcherOption</a>
                                       </li>
                                       <li class="link">
                                           <a href="../directives/DialogDirective.html" >DialogDirective</a>
                                       </li>
                                       <li class="link">
                                           <a href="../directives/EllipsisTooltip.html" >EllipsisTooltip</a>
                                       </li>
                                       <li class="link">
                                           <a href="../directives/Link.html" >Link</a>
                                       </li>
                                       <li class="link">
                                           <a href="../directives/OptGroup.html" >OptGroup</a>
                                       </li>
                                       <li class="link">
                                           <a href="../directives/Option.html" >Option</a>
                                       </li>
                                       <li class="link">
                                           <a href="../directives/OverflowMenuDirective.html" >OverflowMenuDirective</a>
                                       </li>
                                       <li class="link">
                                           <a href="../directives/ScrollableList.html" >ScrollableList</a>
                                       </li>
                                       <li class="link">
                                           <a href="../directives/TextArea.html" >TextArea</a>
                                       </li>
                                       <li class="link">
                                           <a href="../directives/TextInput.html" >TextInput</a>
                                       </li>
                                       <li class="link">
                                           <a href="../directives/TooltipDirective.html" >TooltipDirective</a>
                                       </li>
                               </ul>
                           </li>
                   
                           <li class="chapter">
                               <div class="simple menu-toggler" data-toggle="collapse"
                                       data-target="#classes-links"
                   >
                                   <span class="fa fa-file-code-o"></span>
                                   <span>Classes</span>
                                   <span class="fa fa-angle-down"></span>
                               </div>
                               <ul class="links collapse "
                                       id="classes-links"
                   >
                                       <li class="link">
                                           <a href="../classes/AbstractDropdownView.html" >AbstractDropdownView</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/BaseModal.html" >BaseModal</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/CheckboxChange.html" >CheckboxChange</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/CustomHeaderItem.html" >CustomHeaderItem</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/DateTimeModel.html" >DateTimeModel</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/ModalContainer.html" >ModalContainer</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/PaginationModel.html" >PaginationModel</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/RadioChange.html" >RadioChange</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/SampleBase.html" >SampleBase</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/SwitchChange.html" >SwitchChange</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/TableHeaderItem.html" >TableHeaderItem</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/TableItem.html" >TableItem</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/TableModel.html" >TableModel</a>
                                       </li>
                                       <li class="link">
                                           <a href="../classes/ToggleChange.html" >ToggleChange</a>
                                       </li>
                               </ul>
                           </li>
                   
                           <li class="chapter">
                               <div class="simple menu-toggler" data-toggle="collapse"
                                       data-target="#injectables-links"
                   >
                                   <span class="fa fa-long-arrow-down"></span>
                                   <span>Injectables</span>
                                   <span class="fa fa-angle-down"></span>
                               </div>
                               <ul class="links collapse "
                                       id="injectables-links"
                   >
                                       <li class="link">
                                           <a href="../injectables/BannerService.html" >BannerService</a>
                                       </li>
                                       <li class="link">
                                           <a href="../injectables/DialogService.html" >DialogService</a>
                                       </li>
                                       <li class="link">
                                           <a href="../injectables/I18n.html" >I18n</a>
                                       </li>
                                       <li class="link">
                                           <a href="../injectables/IconService.html"  data-type="entity-link" class="active" >IconService</a>
                                       </li>
                                       <li class="link">
                                           <a href="../injectables/ModalService.html" >ModalService</a>
                                       </li>
                                       <li class="link">
                                           <a href="../injectables/NotificationDisplayService.html" >NotificationDisplayService</a>
                                       </li>
                                       <li class="link">
                                           <a href="../injectables/NotificationService.html" >NotificationService</a>
                                       </li>
                                       <li class="link">
                                           <a href="../injectables/PlaceholderService.html" >PlaceholderService</a>
                                       </li>
                               </ul>
                           </li>
                   
                   
                           <li class="chapter">
                               <div class="simple menu-toggler" data-toggle="collapse"
                                       data-target="#interfaces-links"
                   >
                                   <span class="fa fa-info"></span>
                                   <span>Interfaces</span>
                                   <span class="fa fa-angle-down"></span>
                               </div>
                               <ul class="links collapse "
                                       id="interfaces-links"
                   >
                                       <li class="link">
                                           <a href="../interfaces/AbsolutePosition.html" >AbsolutePosition</a>
                                       </li>
                                       <li class="link">
                                           <a href="../interfaces/AlertModalData.html" >AlertModalData</a>
                                       </li>
                                       <li class="link">
                                           <a href="../interfaces/BannerContent.html" >BannerContent</a>
                                       </li>
                                       <li class="link">
                                           <a href="../interfaces/DialogConfig.html" >DialogConfig</a>
                                       </li>
                                       <li class="link">
                                           <a href="../interfaces/ListItem.html" >ListItem</a>
                                       </li>
                                       <li class="link">
                                           <a href="../interfaces/ModalButton.html" >ModalButton</a>
                                       </li>
                                       <li class="link">
                                           <a href="../interfaces/NotificationContent.html" >NotificationContent</a>
                                       </li>
                                       <li class="link">
                                           <a href="../interfaces/NotificationContent.html" >NotificationContent</a>
                                       </li>
                                       <li class="link">
                                           <a href="../interfaces/SampleInterface.html" >SampleInterface</a>
                                       </li>
                                       <li class="link">
                                           <a href="../interfaces/SizeMap.html" >SizeMap</a>
                                       </li>
                                       <li class="link">
                                           <a href="../interfaces/ToastContent.html" >ToastContent</a>
                                       </li>
                                       <li class="link">
                                           <a href="../interfaces/ToastContent.html" >ToastContent</a>
                                       </li>
                               </ul>
                           </li>
                   
                   
                           <li class="chapter">
                               <div class="simple menu-toggler" data-toggle="collapse"
                                       data-target="#miscellaneous-links"
                   >
                                   <span class="fa fa-cubes"></span>
                                   <span>Miscellaneous</span>
                                   <span class="fa fa-angle-down"></span>
                               </div>
                               <ul class="links collapse "
                                       id="miscellaneous-links"
                   >
                                       <li class="link">
                                         <a href="../miscellaneous/enumerations.html" data-type="entity-link" >Enums</a>
                                       </li>
                                       <li class="link">
                                         <a href="../miscellaneous/functions.html" data-type="entity-link" >Functions</a>
                                       </li>
                                       <li class="link">
                                         <a href="../miscellaneous/typealiases.html" data-type="entity-link" >Type aliases</a>
                                       </li>
                                       <li class="link">
                                         <a href="../miscellaneous/variables.html" data-type="entity-link" >Variables</a>
                                       </li>
                               </ul>
                           </li>
                   
                   
                           <li class="chapter">
                               <a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
                           </li>
                   
                           <li class="divider"></li>
                           <li class="copyright">
                                   Documentation generated using <a href="https://compodoc.github.io/website/" target="_blank">
                                               <img src="..//images/compodoc-vectorise.svg" class="img-responsive">
                                   </a>
                           </li>
                   
                       </ul>
                   
                   </nav>
               </div>
               <div class="content injectable">
                   <div class="content-data">






<ol class="breadcrumb">
  <li>Injectables</li>
  <li>IconService</li>
</ol>

<ul class="nav nav-tabs" role="tablist">
    <li class="active">
        <a href="#info" id="info-tab" role="tab" data-toggle="tab" data-link="info">Info</a>
    </li>


    <li>
        <a href="#source" role="tab" id="source-tab" data-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/icon/icon.service.ts</code>
        </p>

            <p class="comment">
                <h3>Description</h3>
            </p>
            <p class="comment">
                <p>Service that provides static methods for globally configuring icon requests,
and instance methods for requesting sprites and converting sizes to pixel values</p>

            </p>


            <section>
                <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>
                                        <span class="modifier">Protected</span> <a href="#baseURL">baseURL</a>
                                    </li>
                                    <li>
                                        <span class="modifier">Protected</span> <a href="#cacheLevel">cacheLevel</a>
                                    </li>
                                    <li>
                                        <span class="modifier">Protected</span> <a href="#runningRequests">runningRequests</a>
                                    </li>
                                    <li>
                                        <span class="modifier">Protected</span> <a href="#spriteCache">spriteCache</a>
                                    </li>
                                    <li>
                                        <span class="modifier">Static</span> <a href="#spriteLoaded">spriteLoaded</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="#doSpriteRequest">doSpriteRequest</a>
                                    </li>
                                    <li>
                                         <a href="#getIcon">getIcon</a>
                                    </li>
                                    <li>
                                         <a href="#getSprite">getSprite</a>
                                    </li>
                                    <li>
                                        <span class="modifier">Static</span> <a href="#setBaseURL">setBaseURL</a>
                                    </li>
                                    <li>
                                        <span class="modifier">Static</span> <a href="#setCacheLevel">setCacheLevel</a>
                                    </li>
                                </ul>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </section>

            <section>
                <h3 id="constructor">Constructor</h3>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <code>constructor(http: <a href="https://angular.io/docs/ts/latest/api/api/common/http/HttpClient" target="_blank">HttpClient</a>)</code>
                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="53" class="link-to-prism">src/icon/icon.service.ts:53</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>get an instance of the Http service </p>
            </div>
                                        <div>
                                                <b>Parameters :</b>
                                                <table class="params">
                                                    <thead>
                                                        <tr>
                                                            <td>Name</td>
                                                            <td>Type</td>
                                                            <td>Optional</td>
                                                            <td>Description</td>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                            <tr>
                                                              <td>http</td>
                                                              <td>
                                                                        <code><a href="https://angular.io/docs/ts/latest/api/api/common/http/HttpClient" target="_blank" >HttpClient</a></code>
                                                              </td>
                                                              <td>
                                                              </td>
                                                              <td></td>
                                                            </tr>
                                                    </tbody>
                                                </table>
                                        </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
            </section>

            <section>
                
                    <h3 id="methods">
                        Methods
                    </h3>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="doSpriteRequest"></a>
                                    <span class="name"><b> doSpriteRequest</b><a href="#doSpriteRequest"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
            <code>doSpriteRequest(name: <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">
                                            <div class="io-line">Defined in <a href="" data-line="63" class="link-to-prism">src/icon/icon.service.ts:63</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>Responsible for fetching sprites from the <code>baseURL</code></p>
            </div>
            
                                        <div class="io-description">
                                                <b>Parameters :</b>
                                                <table class="params">
                                                    <thead>
                                                        <tr>
                                                            <td>Name</td>
                                                            <td>Type</td>
                                                            <td>Optional</td>
                                                            <td>Description</td>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                            <tr>
                                                              <td>name</td>
                                                              <td>
                                                                      <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
                                                              </td>
                                                              <td>
                                                              </td>
                                                              <td><p>name of the sprite to request</p>
            </td>
                                                            </tr>
                                                    </tbody>
                                                </table>
                                        </div>
                                        <div>
                                        </div>
                                        <div class="io-description">
                                            <b>Returns : </b>    <code>Observable&lt;string&gt;</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="getIcon"></a>
                                    <span class="name"><b> getIcon</b><a href="#getIcon"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
            <code>getIcon(name: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, size: <a href="../components/Icon.html">IconSize</a>)</code>
                                </td>
                            </tr>
            
            
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="82" class="link-to-prism">src/icon/icon.service.ts:82</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>Returns a promise that will resolve to a clone of the requested icon</p>
            </div>
            
                                        <div class="io-description">
                                                <b>Parameters :</b>
                                                <table class="params">
                                                    <thead>
                                                        <tr>
                                                            <td>Name</td>
                                                            <td>Type</td>
                                                            <td>Optional</td>
                                                            <td>Description</td>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                            <tr>
                                                              <td>name</td>
                                                              <td>
                                                                      <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
                                                              </td>
                                                              <td>
                                                              </td>
                                                              <td><p>name of the icon</p>
            </td>
                                                            </tr>
                                                            <tr>
                                                              <td>size</td>
                                                              <td>
                                                                      <code><a href="../components/Icon.html" target="_self" >IconSize</a></code>
                                                              </td>
                                                              <td>
                                                              </td>
                                                              <td><p>size of the icon as an IconSize</p>
            </td>
                                                            </tr>
                                                    </tbody>
                                                </table>
                                        </div>
                                        <div>
                                        </div>
                                        <div class="io-description">
                                            <b>Returns : </b>    <code>Promise&lt;HTMLElement&gt;</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="getSprite"></a>
                                    <span class="name"><b> getSprite</b><a href="#getSprite"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
            <code>getSprite(name: <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">
                                            <div class="io-line">Defined in <a href="" data-line="109" class="link-to-prism">src/icon/icon.service.ts:109</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>Requests and caches the specified sprite</p>
            </div>
            
                                        <div class="io-description">
                                                <b>Parameters :</b>
                                                <table class="params">
                                                    <thead>
                                                        <tr>
                                                            <td>Name</td>
                                                            <td>Type</td>
                                                            <td>Optional</td>
                                                            <td>Description</td>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                            <tr>
                                                              <td>name</td>
                                                              <td>
                                                                      <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
                                                              </td>
                                                              <td>
                                                              </td>
                                                              <td><p>name of the sprite to request</p>
            </td>
                                                            </tr>
                                                    </tbody>
                                                </table>
                                        </div>
                                        <div>
                                        </div>
                                        <div class="io-description">
                                            <b>Returns : </b>    <code>Observable&lt;string&gt;</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="setBaseURL"></a>
                                    <span class="name"><b><span class="modifier">Static</span> setBaseURL</b><a href="#setBaseURL"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
                                        <span class="modifier-icon fa fa-reset"></span>
                                    <code>setBaseURL(url: <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">
                                            <div class="io-line">Defined in <a href="" data-line="38" class="link-to-prism">src/icon/icon.service.ts:38</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>Sets the baseURL</p>
            <p>By default we use <a href="http://peretz-icons.mybluemix.net/">http://peretz-icons.mybluemix.net/</a> for sprites - this is sufficient for prototyping,
            but for development and production it is recommended to build streamlined sprites and host them statically.</p>
            </div>
            
                                        <div class="io-description">
                                                <b>Parameters :</b>
                                                <table class="params">
                                                    <thead>
                                                        <tr>
                                                            <td>Name</td>
                                                            <td>Type</td>
                                                            <td>Optional</td>
                                                            <td>Description</td>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                            <tr>
                                                              <td>url</td>
                                                              <td>
                                                                      <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
                                                              </td>
                                                              <td>
                                                              </td>
                                                              <td></td>
                                                            </tr>
                                                    </tbody>
                                                </table>
                                        </div>
                                        <div>
                                        </div>
                                        <div class="io-description">
                                            <b>Returns : </b>    <code><a href="../injectables/IconService.html" target="_self" >typeof IconService</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="setCacheLevel"></a>
                                    <span class="name"><b><span class="modifier">Static</span> setCacheLevel</b><a href="#setCacheLevel"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
                                        <span class="modifier-icon fa fa-reset"></span>
                                    <code>setCacheLevel(level: "none" | "simple")</code>
                                </td>
                            </tr>
            
            
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">src/icon/icon.service.ts:50</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>sets the caching level for sprites.
            &quot;none&quot; disables caching (sprites will always be requested again)
            &quot;simple&quot; uses a static Map as a naive cache</p>
            </div>
            
                                        <div class="io-description">
                                                <b>Parameters :</b>
                                                <table class="params">
                                                    <thead>
                                                        <tr>
                                                            <td>Name</td>
                                                            <td>Type</td>
                                                            <td>Optional</td>
                                                            <td>Description</td>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                            <tr>
                                                              <td>level</td>
                                                              <td>
                                                                      <code>&quot;none&quot; | &quot;simple&quot;</code>
                                                              </td>
                                                              <td>
                                                              </td>
                                                              <td></td>
                                                            </tr>
                                                    </tbody>
                                                </table>
                                        </div>
                                        <div>
                                        </div>
                                        <div class="io-description">
                                            <b>Returns : </b>    <code><a href="../injectables/IconService.html" target="_self" >typeof IconService</a></code>
            
                                        </div>
                                            <div class="io-description">
                                                
                                            </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
            </section>

            <section>
                
                    <h3 id="inputs">
                        Properties
                    </h3>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="baseURL"></a>
                                    <span class="name"><b><span class="modifier">Protected</span> baseURL</b><a href="#baseURL"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
                                    <span class="modifier-icon fa fa-lock"></span><code>baseURL:     <code></code>
            </code>
                                </td>
                            </tr>
                                <tr>
                                    <td class="col-md-4">
                                        <i>Default value : </i><code>https://peretz-icons.mybluemix.net/</code>
                                    </td>
                                </tr>
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/icon/icon.service.ts:28</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                    <div class="io-description"><p>URL to request sprites from </p>
            </div>
                                </td>
                            </tr>
            
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="cacheLevel"></a>
                                    <span class="name"><b><span class="modifier">Protected</span> cacheLevel</b><a href="#cacheLevel"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
                                    <span class="modifier-icon fa fa-lock"></span><code>cacheLevel:     <code>&quot;none&quot; | &quot;simple&quot;</code>
            </code>
                                </td>
                            </tr>
                                <tr>
                                    <td class="col-md-4">
                                        <i>Type : </i>    <code>&quot;none&quot; | &quot;simple&quot;</code>
            
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col-md-4">
                                        <i>Default value : </i><code>simple</code>
                                    </td>
                                </tr>
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/icon/icon.service.ts:26</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                    <div class="io-description"><p>how aggressively to cache sprites. defaults to simple </p>
            </div>
                                </td>
                            </tr>
            
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="runningRequests"></a>
                                    <span class="name"><b><span class="modifier">Protected</span> runningRequests</b><a href="#runningRequests"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
                                    <span class="modifier-icon fa fa-lock"></span><code>runningRequests:     <code></code>
            </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="18" class="link-to-prism">src/icon/icon.service.ts:18</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                    <div class="io-description"><p>Internal variable to track running requests.
            Used to call spriteLoaded when new sprites are available</p>
            </div>
                                </td>
                            </tr>
            
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="spriteCache"></a>
                                    <span class="name"><b><span class="modifier">Protected</span> spriteCache</b><a href="#spriteCache"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
                                    <span class="modifier-icon fa fa-lock"></span><code>spriteCache:     <code>Map&lt;string | Observable&lt;string&gt;&gt;</code>
            </code>
                                </td>
                            </tr>
                                <tr>
                                    <td class="col-md-4">
                                        <i>Type : </i>    <code>Map&lt;string | Observable&lt;string&gt;&gt;</code>
            
                                    </td>
                                </tr>
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/icon/icon.service.ts:24</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                    <div class="io-description"><p>map to use for sprite requests</p>
            <p>we just cache the whole promise since we can always <code>.then</code> out the result</p>
            </div>
                                </td>
                            </tr>
            
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="spriteLoaded"></a>
                                    <span class="name"><b><span class="modifier">Static</span> spriteLoaded</b><a href="#spriteLoaded"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
                                    <span class="modifier-icon fa fa-reset"></span><code>spriteLoaded:     <code></code>
            </code>
                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">src/icon/icon.service.ts:13</a></div>
                                        </td>
                                    </tr>
            
            
                        </tbody>
                    </table>
            </section>

    </div>


    <div class="tab-pane fade tab-source-code" id="source">
        <pre class="line-numbers"><code class="language-typescript">import { Injectable, EventEmitter } from &quot;@angular/core&quot;;
import { HttpClient } from &quot;@angular/common/http&quot;;
import { Observable, throwError } from &quot;rxjs&quot;;
import { tap, catchError } from &quot;rxjs/operators&quot;;
import { IconSize } from &quot;./icon.types&quot;;

/**
 * Service that provides static methods for globally configuring icon requests,
 * and instance methods for requesting sprites and converting sizes to pixel values
 */
@Injectable()
export class IconService {
	static spriteLoaded &#x3D; new EventEmitter();
	/**
	 * Internal variable to track running requests.
	 * Used to call spriteLoaded when new sprites are available
	 */
	protected static runningRequests &#x3D; 0;
	/**
	 * map to use for sprite requests
	 *
	 * we just cache the whole promise since we can always &#x60;.then&#x60; out the result
	 * */
	protected static spriteCache: Map&lt;string, Observable&lt;string&gt;&gt; &#x3D; new Map&lt;string, Observable&lt;string&gt;&gt;();
	/** how aggressively to cache sprites. defaults to simple */
	protected static cacheLevel: &quot;none&quot; | &quot;simple&quot; &#x3D; &quot;simple&quot;;
	/** URL to request sprites from */
	protected static baseURL &#x3D; &quot;https://peretz-icons.mybluemix.net/&quot;;

	/**
	 * Sets the baseURL
	 *
	 * By default we use http://peretz-icons.mybluemix.net/ for sprites - this is sufficient for prototyping,
	 * but for development and production it is recommended to build streamlined sprites and host them statically.
	 *
	 * @param {string} url
	 */
	static setBaseURL(url: string) {
		IconService.baseURL &#x3D; url;
		return IconService;
	}

	/**
	 * sets the caching level for sprites.
	 * &quot;none&quot; disables caching (sprites will always be requested again)
	 * &quot;simple&quot; uses a static Map as a naive cache
	 *
	 * @param {&quot;none&quot; | &quot;simple&quot;} level
	 */
	static setCacheLevel(level: &quot;none&quot; | &quot;simple&quot;) {
		IconService.cacheLevel &#x3D; level;
		return IconService;
	}

	/** get an instance of the Http service */
	constructor(protected http: HttpClient) {}

	/**
	 * Responsible for fetching sprites from the &#x60;baseURL&#x60;
	 *
	 * @param {string} name name of the sprite to request
	 */
	doSpriteRequest(name: string): Observable&lt;string&gt; {
		IconService.runningRequests++;
		return this.http.get(&#x60;${IconService.baseURL}${name}.svg&#x60;, { responseType: &quot;text&quot; })
			.pipe(
				tap(() &#x3D;&gt; IconService.runningRequests--),
				catchError(() &#x3D;&gt; {
					const error &#x3D; &#x60;failed to load sprite ${name}, check that the server is available and baseURL is correct&#x60;;
					console.error(error);
					return throwError(error);
				})
			);
	}

	/**
	 * Returns a promise that will resolve to a clone of the requested icon
	 *
	 * @param name name of the icon
	 * @param size size of the icon as an IconSize
	 */
	getIcon(name: string, size: IconSize): Promise&lt;HTMLElement&gt; {
		// resolver either calls the provided Promise resolution function with the loaded icon
		// or returns false to indicate the sprite with the required icon has yet to load
		const resolver &#x3D; resolve &#x3D;&gt; {
			const icon &#x3D; document.querySelector(&#x60;symbol#${name}_${size}&#x60;);
			if (icon) {
				const clone &#x3D; icon.firstElementChild.cloneNode(true);
				return resolve(clone as HTMLElement);
			}
			return false;
		};

		const loadedIcon &#x3D; new Promise&lt;HTMLElement&gt;((resolve, reject) &#x3D;&gt; {
			if (!resolver(resolve)) {
				IconService.spriteLoaded.subscribe(() &#x3D;&gt; {
					resolver(resolve);
				});
			}
		});
		return loadedIcon;
	}

	/**
	 * Requests and caches the specified sprite
	 *
	 * @param {string} name name of the sprite to request
	 */
	getSprite(name: string): Observable&lt;string&gt; {
		if (IconService.cacheLevel &#x3D;&#x3D;&#x3D; &quot;none&quot;) {
			return this.doSpriteRequest(name);
		} else {
			if (IconService.spriteCache.has(name)) {
				return IconService.spriteCache.get(name);
			}
			let spriteRequest &#x3D; this.doSpriteRequest(name);
			IconService.spriteCache.set(name, spriteRequest);
			return spriteRequest;
		}
	}
}
</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>
           </div>
       </div>

       <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>var COMPODOC_CURRENT_PAGE_DEPTH = 1;</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/tabs.js"></script>
       <script src="../js/menu.js"></script>
       <script src="../js/libs/prism.js"></script>
       <script src="../js/sourceCode.js"></script>
       <script src="../js/search/search_index.js"></script>

    </body>
</html>