UNPKG

carbon-components-angular

Version:
2,474 lines 132 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"  data-type="entity-link" class="active" >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" >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"  data-type="entity-link" class="active" >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" >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 directive">
                   <div class="content-data">





<ol class="breadcrumb">
  <li>Directives</li>
  <li>DialogDirective</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/dialog/dialog.directive.ts</code>
        </p>

            <p class="comment">
                <h3>Description</h3>
            </p>
            <p class="comment">
                <p>A generic directive that can be inherited from to create dialogs (for example, a tooltip or popover)</p>
<p>This class contains the relevant intilization code, specific templates, options, and additional inputs
should be specified in the derived class.</p>
<p>NOTE: All child classes should add <code>DialogService</code> as a provider, otherwise they will lose context that
the service relies on.</p>

            </p>

            <p class="comment">
                <h3>Implements</h3>
            </p>
            <p class="comment">
                        <code><a href="https://angular.io/docs/ts/latest/api/api/core/OnInit" target="_blank" >OnInit</a></code>
                        <code><a href="https://angular.io/docs/ts/latest/api/api/core/OnDestroy" target="_blank" >OnDestroy</a></code>
                        <code><a href="https://angular.io/docs/ts/latest/api/api/core/OnChanges" target="_blank" >OnChanges</a></code>
            </p>


        <section>
            <h3>Metadata</h3>
            <table class="table table-sm table-hover">
                <tbody>
                    <tr>
                        <td class="col-md-3">providers</td>
                        <td class="col-md-9">
                            <code>
                                DialogService
                            </code>
                        </td>
                    </tr>

                    <tr>
                        <td class="col-md-3">selector</td>
                        <td class="col-md-9"><code>[ibmDialog]</code></td>
                    </tr>

                </tbody>
            </table>
        </section>

            <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>
                                         <a href="#dialogConfig">dialogConfig</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="#close">close</a>
                                    </li>
                                    <li>
                                         <a href="#ngOnChanges">ngOnChanges</a>
                                    </li>
                                    <li>
                                         <a href="#ngOnDestroy">ngOnDestroy</a>
                                    </li>
                                    <li>
                                         <a href="#ngOnInit">ngOnInit</a>
                                    </li>
                                    <li>
                                        <span class="modifier">Protected</span> <a href="#onDialogInit">onDialogInit</a>
                                    </li>
                                    <li>
                                         <a href="#open">open</a>
                                    </li>
                                    <li>
                                         <a href="#toggle">toggle</a>
                                    </li>
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-md-4">
                                <h6><b>Inputs</b></h6>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-md-4">
                                <ul class="index-list">
                                    <li>
                                        <a href="#appendInline">appendInline</a>
                                    </li>
                                    <li>
                                        <a href="#appendToBody">appendToBody</a>
                                    </li>
                                    <li>
                                        <a href="#data">data</a>
                                    </li>
                                    <li>
                                        <a href="#gap">gap</a>
                                    </li>
                                    <li>
                                        <a href="#ibmDialog">ibmDialog</a>
                                    </li>
                                    <li>
                                        <a href="#placement">placement</a>
                                    </li>
                                    <li>
                                        <a href="#title">title</a>
                                    </li>
                                    <li>
                                        <a href="#trigger">trigger</a>
                                    </li>
                                    <li>
                                        <a href="#wrapperClass">wrapperClass</a>
                                    </li>
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-md-4">
                                <h6><b>Outputs</b></h6>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-md-4">
                                <ul class="index-list">
                                    <li>
                                        <a href="#onClose">onClose</a>
                                    </li>
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-md-4">
                                <h6><b>HostBindings</b></h6>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-md-4">
                                <ul class="index-list">
                                    <li>
                                        <a href="#attr.aria-expanded">attr.aria-expanded</a>
                                    </li>
                                    <li>
                                        <a href="#attr.role">attr.role</a>
                                    </li>
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-md-4">
                                <h6><b>HostListeners</b></h6>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-md-4">
                                <ul class="index-list">
                                    <li>
                                        <a href="#touchstart">touchstart</a>
                                    </li>
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-md-4">
                                <h6><b>Accessors</b></h6>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-md-4">
                                <ul class="index-list">
                                    <li>
                                         <a href="#appendToBody">appendToBody</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(elementRef: <a href="https://angular.io/docs/ts/latest/api/api/core/ElementRef" target="_blank">ElementRef</a>, viewContainerRef: <a href="https://angular.io/docs/ts/latest/api/api/core/ViewContainerRef" target="_blank">ViewContainerRef</a>, dialogService: <a href="../injectables/DialogService.html">DialogService</a>)</code>
                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="93" class="link-to-prism">src/dialog/dialog.directive.ts:93</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>Creates an instance of DialogDirective.</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>elementRef</td>
                                                              <td>
                                                                        <code><a href="https://angular.io/docs/ts/latest/api/api/core/ElementRef" target="_blank" >ElementRef</a></code>
                                                              </td>
                                                              <td>
                                                              </td>
                                                              <td></td>
                                                            </tr>
                                                            <tr>
                                                              <td>viewContainerRef</td>
                                                              <td>
                                                                        <code><a href="https://angular.io/docs/ts/latest/api/api/core/ViewContainerRef" target="_blank" >ViewContainerRef</a></code>
                                                              </td>
                                                              <td>
                                                              </td>
                                                              <td></td>
                                                            </tr>
                                                            <tr>
                                                              <td>dialogService</td>
                                                              <td>
                                                                        <code><a href="../injectables/DialogService.html" target="_self" >DialogService</a></code>
                                                              </td>
                                                              <td>
                                                              </td>
                                                              <td></td>
                                                            </tr>
                                                    </tbody>
                                                </table>
                                        </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
            </section>

            <section>
                <h3 id="inputs">Inputs</h3>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-2">
                                    <a name="appendInline"></a>
                                    <code>appendInline</code>
                                </td>
                                <td class="col-md-10">
                                    <div><p>Set to <code>true</code> to open the dialog next to the triggering component</p>
</div>
                                    <p>
                                      <em>Default value: </em><code>false</code>
                                    </p>
                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-2" colspan="2">
                                            <div class="io-line">Defined in <a href="" data-line="81" class="link-to-prism">src/dialog/dialog.directive.ts:81</a></div>
                                        </td>
                                    </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-2">
                                    <a name="appendToBody"></a>
                                    <code>appendToBody</code>
                                </td>
                                <td class="col-md-10">
                                    <div><p>Deprecated. Defaults to true. Use appendInline to keep dialogs within page flow
Value <code>true</code> sets Dialog be appened to the body (to break out of containers)</p>
</div>
                                      <p>
                                        <em>Type:</em>    <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>

                                      </p>
                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-2" colspan="2">
                                            <div class="io-line">Defined in <a href="" data-line="69" class="link-to-prism">src/dialog/dialog.directive.ts:69</a></div>
                                        </td>
                                    </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-2">
                                    <a name="data"></a>
                                    <code>data</code>
                                </td>
                                <td class="col-md-10">
                                    <div><p>Optional data for templates</p>
</div>
                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-2" colspan="2">
                                            <div class="io-line">Defined in <a href="" data-line="85" class="link-to-prism">src/dialog/dialog.directive.ts:85</a></div>
                                        </td>
                                    </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-2">
                                    <a name="gap"></a>
                                    <code>gap</code>
                                </td>
                                <td class="col-md-10">
                                    <div><p>Spacing between the dialog and it&#39;s triggering element</p>
</div>
                                    <p>
                                      <em>Default value: </em><code>0</code>
                                    </p>
                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-2" colspan="2">
                                            <div class="io-line">Defined in <a href="" data-line="64" class="link-to-prism">src/dialog/dialog.directive.ts:64</a></div>
                                        </td>
                                    </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-2">
                                    <a name="ibmDialog"></a>
                                    <code>ibmDialog</code>
                                </td>
                                <td class="col-md-10">
                                    <div><p>Dialog body content.</p>
</div>
                                      <p>
                                        <em>Type:</em>    <code>string | TemplateRef</code>

                                      </p>
                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-2" colspan="2">
                                            <div class="io-line">Defined in <a href="" data-line="45" class="link-to-prism">src/dialog/dialog.directive.ts:45</a></div>
                                        </td>
                                    </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-2">
                                    <a name="placement"></a>
                                    <code>placement</code>
                                </td>
                                <td class="col-md-10">
                                    <div><p>Placement of the dialog, usually relative to the element the directive is on.</p>
</div>
                                    <p>
                                      <em>Default value: </em><code>left</code>
                                    </p>
                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-2" colspan="2">
                                            <div class="io-line">Defined in <a href="" data-line="54" class="link-to-prism">src/dialog/dialog.directive.ts:54</a></div>
                                        </td>
                                    </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-2">
                                    <a name="title"></a>
                                    <code>title</code>
                                </td>
                                <td class="col-md-10">
                                    <div><p>Title for the dialog</p>
</div>
                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-2" colspan="2">
                                            <div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/dialog/dialog.directive.ts:40</a></div>
                                        </td>
                                    </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-2">
                                    <a name="trigger"></a>
                                    <code>trigger</code>
                                </td>
                                <td class="col-md-10">
                                    <div><p>Defines how the Dialog is triggered.(Hover and click behave the same on mobile - both respond to a single tap)</p>
</div>
                                      <p>
                                        <em>Type:</em>    <code>&quot;click&quot; | &quot;hover&quot; | &quot;mouseenter&quot;</code>

                                      </p>
                                    <p>
                                      <em>Default value: </em><code>click</code>
                                    </p>
                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-2" colspan="2">
                                            <div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">src/dialog/dialog.directive.ts:50</a></div>
                                        </td>
                                    </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-2">
                                    <a name="wrapperClass"></a>
                                    <code>wrapperClass</code>
                                </td>
                                <td class="col-md-10">
                                    <div><p>Class to add to the dialog container</p>
</div>
                                      <p>
                                        <em>Type:</em>    <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>

                                      </p>
                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-2" colspan="2">
                                            <div class="io-line">Defined in <a href="" data-line="59" class="link-to-prism">src/dialog/dialog.directive.ts:59</a></div>
                                        </td>
                                    </tr>
                        </tbody>
                    </table>
            </section>

            <section>
                <h3 id="outputs">Outputs</h3>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-2">
                                    <a name="onClose"></a>
                                    <code>onClose</code>
                                </td>
                                <td class="col-md-10">
                                    <div><p>Config object passed to the rendered component</p>
</div>
                                    <em><code>$event</code> type:</em>    <code>EventEmitter&lt;any&gt;</code>

                                </td>
                            </tr>
                                    <tr>
                                        <td class="col-md-2" colspan="2">
                                            <div class="io-line">Defined in <a href="" data-line="89" class="link-to-prism">src/dialog/dialog.directive.ts:89</a></div>
                                        </td>
                                    </tr>
                        </tbody>
                    </table>
            </section>

            <section>
                <h3>HostBindings</h3>        <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="attr.aria-expanded"></a>
                                    <span class="name"><b> attr.aria-expanded</b><a href="#attr.aria-expanded"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
                                    <code>attr.aria-expanded:     <code></code>
            </code>
                                </td>
                            </tr>
                                <tr>
                                    <td class="col-md-4">
                                        <i>Default value : </i><code>false</code>
                                    </td>
                                </tr>
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="93" class="link-to-prism">src/dialog/dialog.directive.ts:93</a></div>
                                        </td>
                                    </tr>
            
            
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="attr.role"></a>
                                    <span class="name"><b> attr.role</b><a href="#attr.role"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
                                    <code>attr.role:     <code></code>
            </code>
                                </td>
                            </tr>
                                <tr>
                                    <td class="col-md-4">
                                        <i>Default value : </i><code>button</code>
                                    </td>
                                </tr>
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="92" class="link-to-prism">src/dialog/dialog.directive.ts:92</a></div>
                                        </td>
                                    </tr>
            
            
                        </tbody>
                    </table>
            </section>

            <section>
                <h3>HostListeners</h3>        <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="touchstart"></a>
                                    <span class="name"><b> touchstart</b><a href="#touchstart"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                                <tr>
                                    <td class="col-md-4">
                                        <i>Arguments : </i><code>'$event' </code>
                                    </td>
                                </tr>
                            <tr>
                                <td class="col-md-4">
            <code>touchstart(evt: )</code>
                                </td>
                            </tr>
            
            
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="111" class="link-to-prism">src/dialog/dialog.directive.ts:111</a></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="close"></a>
                                    <span class="name"><b> close</b><a href="#close"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
            <code>close()</code>
                                </td>
                            </tr>
            
            
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="193" class="link-to-prism">src/dialog/dialog.directive.ts:193</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>Helper method to call dialogService &#39;close&#39;.</p>
            <ul>
            <li>Enforce accessibility by updating an aria attr for nativeElement.</li>
            </ul>
            </div>
            
                                        <div class="io-description">
                                            <b>Returns : </b>    <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
            
                                        </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="ngOnChanges"></a>
                                    <span class="name"><b> ngOnChanges</b><a href="#ngOnChanges"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
            <code>ngOnChanges()</code>
                                </td>
                            </tr>
            
            
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="117" class="link-to-prism">src/dialog/dialog.directive.ts:117</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
            
                                        <div class="io-description">
                                            <b>Returns : </b>    <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
            
                                        </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="ngOnDestroy"></a>
                                    <span class="name"><b> ngOnDestroy</b><a href="#ngOnDestroy"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
            <code>ngOnDestroy()</code>
                                </td>
                            </tr>
            
            
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="167" class="link-to-prism">src/dialog/dialog.directive.ts:167</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>When the host dies, kill the popover.</p>
            <ul>
            <li>Useful for use in a modal or similar.</li>
            </ul>
            </div>
            
                                        <div class="io-description">
                                            <b>Returns : </b>    <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
            
                                        </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="ngOnInit"></a>
                                    <span class="name"><b> ngOnInit</b><a href="#ngOnInit"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
            <code>ngOnInit()</code>
                                </td>
                            </tr>
            
            
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="136" class="link-to-prism">src/dialog/dialog.directive.ts:136</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>Sets the config object and binds events for hovering or clicking before
            running code from child class.</p>
            </div>
            
                                        <div class="io-description">
                                            <b>Returns : </b>    <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
            
                                        </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="onDialogInit"></a>
                                    <span class="name"><b><span class="modifier">Protected</span> onDialogInit</b><a href="#onDialogInit"><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>onDialogInit()</code>
                                </td>
                            </tr>
            
            
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="203" class="link-to-prism">src/dialog/dialog.directive.ts:203</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>Empty method for child classes to override and specify additional init steps.
            Run after DialogDirective completes it&#39;s ngOnInit.</p>
            </div>
            
                                        <div class="io-description">
                                            <b>Returns : </b>    <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
            
                                        </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="open"></a>
                                    <span class="name"><b> open</b><a href="#open"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
            <code>open()</code>
                                </td>
                            </tr>
            
            
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="175" class="link-to-prism">src/dialog/dialog.directive.ts:175</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>Helper method to call dialogService &#39;open&#39;.</p>
            <ul>
            <li>Enforce accessibility by updating an aria attr for nativeElement.</li>
            </ul>
            </div>
            
                                        <div class="io-description">
                                            <b>Returns : </b>    <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
            
                                        </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="toggle"></a>
                                    <span class="name"><b> toggle</b><a href="#toggle"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
            <code>toggle()</code>
                                </td>
                            </tr>
            
            
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="184" class="link-to-prism">src/dialog/dialog.directive.ts:184</a></div>
                                        </td>
                                    </tr>
            
                            <tr>
                                <td class="col-md-4">
                                        <div class="io-description"><p>Helper method to call dialogService &#39;toggle&#39;.</p>
            <ul>
            <li>Enforce accessibility by updating an aria attr for nativeElement.</li>
            </ul>
            </div>
            
                                        <div class="io-description">
                                            <b>Returns : </b>    <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
            
                                        </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="dialogConfig"></a>
                                    <span class="name"><b> dialogConfig</b><a href="#dialogConfig"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-md-4">
                                    <code>dialogConfig:     <code><a href="../interfaces/DialogConfig.html" target="_self" >DialogConfig</a></code>
            </code>
                                </td>
                            </tr>
                                <tr>
                                    <td class="col-md-4">
                                        <i>Type : </i>    <code><a href="../interfaces/DialogConfig.html" target="_self" >DialogConfig</a></code>
            
                                    </td>
                                </tr>
                                    <tr>
                                        <td class="col-md-4">
                                            <div class="io-line">Defined in <a href="" data-line="90" class="link-to-prism">src/dialog/dialog.directive.ts:90</a></div>
                                        </td>
                                    </tr>
            
            
                        </tbody>
                    </table>
            </section>

            <section>
                <h3 id="accessors">
                    Accessors
                </h3>
                    <table class="table table-sm table-bordered">
                        <tbody>
                            <tr>
                                <td class="col-md-4">
                                    <a name="appendToBody"></a>
                                    <span class="name"><b>appendToBody</b><a href="#appendToBody"><span class="fa fa-link"></span></a></span>
                                </td>
                            </tr>
            
                            <tr>
                                <td class="col-md-4">
                                    <span class="accessor"><b>get</b><code>appendToBody()</code></span>
                                </td>
                            </tr>
                                        <tr>
                                            <td class="col-md-4">
                                                <div class="io-line">Defined in <a href="" data-line="75" class="link-to-prism">src/dialog/dialog.directive.ts:75</a></div>
                                            </td>
                                        </tr>
            
                            <tr>
                                <td class="col-md-4">
                                    <span class="accessor"><b>set</b><code>appendToBody(v: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank">boolean</a>)</code></span>
                                </td>
                            </tr>
                                        <tr>
                                            <td class="col-md-4">
                                                <div class="io-line">Defined in <a href="" data-line="69" class="link-to-prism">src/dialog/dialog.directive.ts:69</a></div>
                                            </td>
                                        </tr>
                                <tr>
                                    <td class="col-md-4">
                                            <div class="io-description"><p>Deprecated. Defaults to true. Use appendInline to keep dialogs within page flow
            Value <code>true</code> sets Dialog be appened to the body (to break out of containers)</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>v</td>
                                                                  <td>
                                                                          <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
                                                                  </td>
                                                                  <td>
                                                                  </td>
                                                                  <td></td>
                                                                </tr>
                                                        </tbody>
                                                    </table>
                                            </div>
                                            <div>
                                            </div>
                                            <div class="io-description">
                                                <b>Returns : </b>    <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
            
                                            </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 {
	Directive,
	Input,
	Output,
	EventEmitter,
	OnInit,
	OnDestroy,
	ElementRef,
	TemplateRef,
	ViewContainerRef,
	HostListener,
	OnChanges,
	HostBinding
} from &quot;@angular/core&quot;;
import { fromEvent } from &quot;rxjs&quot;;
import { DialogService } from &quot;./dialog.service&quot;;
import { DialogConfig } from &quot;./dialog-config.interface&quot;;

/**
 * A generic directive that can be inherited from to create dialogs (for example, a tooltip or popover)
 *
 * This class contains the relevant intilization code, specific templates, options, and additional inputs
 * should be specified in the derived class.
 *
 * NOTE: All child classes should add &#x60;DialogService&#x60; as a provider, otherwise they will lose context that
 * the service relies on.
 */
@Directive({
	selector: &quot;[ibmDialog]&quot;,
	exportAs: &quot;ibmDialog&quot;,
	providers: [
		DialogService
	]
})
export class DialogDirective implements OnInit, OnDestroy, OnChanges {
	/**
	 * Title for the dialog
	 * @type {string}
	 */
	@Input() title &#x3D; &quot;&quot;;
	/**
	 * Dialog body content.
	 * @type {(string | TemplateRef&lt;any&gt;)}
	 */
	@Input() ibmDialog: string | TemplateRef&lt;any&gt;;
	/**
	 * Defines how the Dialog is triggered.(Hover and click behave the same on mobile - both respond to a single tap)
	 * @type {(&quot;click&quot; | &quot;hover&quot; | &quot;mouseenter&quot;)}
	 */
	@Input() trigger: &quot;click&quot; | &quot;hover&quot; | &quot;mouseenter&quot; &#x3D; &quot;click&quot;;
	/**
	 * Placement of the dialog, usually relative to the element the directive is on.
	 */
	@Input() placement &#x3D; &quot;left&quot;;
	/**
	 * Class to add to the dialog container
	 * @type {string}
	 */
	@Input() wrapperClass: string;
	/**
	 * Spacing between the dialog and it&#x27;s triggering element
	 * @type {number}
	 */
	@Input() gap &#x3D; 0;
	/**
	 * Deprecated. Defaults to true. Use appendInline to keep dialogs within page flow
	 * Value &#x60;true&#x60; sets Dialog be appened to the body (to break out of containers)
	 */
	@Input() set appendToBody(v: boolean) {
		console.log(&quot;&#x60;appendToBody&#x60; has been deprecated. Dialogs now append to the body by default.&quot;);
		console.log(&quot;Ensure you have an &#x60;ibm-placeholder&#x60; in your app.&quot;);
		console.log(&quot;Use &#x60;appendInline&#x60; if you need to position your dialogs within the normal page flow.&quot;);
		this.appendInline &#x3D; !v;
	}
	get appendToBody() {
		return !this.appendInline;
	}
	/**
	 * Set to &#x60;true&#x60; to open the dialog next to the triggering component
	 */
	@Input() appendInline &#x3D; false;
	/**
	 * Optional data for templates
	 */
	@Input() data &#x3D; {};
	/**
	 * Config object passed to the rendered component
	 */
	@Output() onClose: EventEmitter&lt;any&gt; &#x3D; new EventEmitter&lt;any&gt;();
	dialogConfig: DialogConfig;

	@HostBinding(&quot;attr.role&quot;) role &#x3D; &quot;button&quot;;
	@HostBinding(&quot;attr.aria-expanded&quot;) expanded &#x3D; false;

	/**
	 * Creates an instance of DialogDirective.
	 * @param {ElementRef} elementRef
	 * @param {ViewContainerRef} viewContainerRef
	 * @param {DialogService} dialogService
	 */
	constructor(
		protected elementRef: ElementRef,
		protected viewContainerRef: ViewContainerRef,
		protected dialogService: DialogService) {}

	/**
	 * Overrides &#x27;touchstart&#x27; event to trigger a toggle on the Dialog.
	 * @param {any} evt
	 */
	@HostListener(&quot;touchstart&quot;, [&quot;$event&quot;])
	onTouchStart(evt) {
		evt.stopImmediatePropagation();
		evt.preventDefault();
		this.toggle();
	}

	ngOnChanges() {
		// set the config object (this can [and should!] be added to in child classes depending on what they need)
		this.dialogConfig &#x3D; {
			title: this.title,
			content: this.ibmDialog,
			placement: this.placement,
			parentRef: this.elementRef,
			gap: this.gap,
			trigger: this.trigger,
			appendInline: this.appendInline,
			wrapperClass: this.wrapperClass,
			data: this.data
		};
	}

	/**
	 * Sets the config object and binds events for hovering or clicking before
	 * running code from child class.
	 */
	ngOnInit() {
		// fix for safari hijacking clicks
		this.dialogService.singletonClickListen();

		// bind events for hovering or clicking the host
		if (this.trigger &#x3D;&#x3D;&#x3D; &quot;hover&quot; || this.trigger &#x3D;&#x3D;&#x3D; &quot;mouseenter&quot;) {
			fromEvent(this.elementRef.nativeElement, &quot;mouseenter&quot;).subscribe(() &#x3D;&gt; this.toggle());
			fromEvent(this.elementRef.nativeElement, &quot;mouseout&quot;).subscribe(() &#x3D;&gt; this.close());
			fromEvent(this.elementRef.nativeElement, &quot;focus&quot;).subscribe(() &#x3D;&gt; this.open());
			fromEvent(this.elementRef.nativeElement, &quot;blur&quot;).subscribe(() &#x3D;&gt; this.close());
		} else {
			fromEvent(this.elementRef.nativeElement, &quot;click&quot;).subscribe(() &#x3D;&gt; this.toggle());
		}

		// call onClose when the dialog is closed
		// - Enforce accessibility by updating an aria attr for nativeElement.
		this.dialogService.isClosed.subscribe(value &#x3D;&gt; {
			if (value) {
				this.onClose.emit();
				this.expanded &#x3D; false;
			}
		});

		// run any code a child class may need
		this.onDialogInit();
	}

	/**
	 * When the host dies, kill the popover.
	 * - Useful for use in a modal or similar.
	 */
	ngOnDestroy() {
		this.close();
	}

	/**
	 * Helper method to call dialogService &#x27;open&#x27;.
	 * - Enforce accessibility by updating an aria attr for nativeElement.
	 */
	open() {
		this.dialogService.open(this.viewContainerRef, this.dialogConfig);
		this.expanded &#x3D; true;
	}

	/**
	 * Helper method to call dialogService &#x27;toggle&#x27;.
	 * - Enforce accessibility by updating an aria attr for nativeElement.
	 */
	toggle() {
		this.dialogService.toggle(this.viewContainerRef, this.dialogConfig);
		this.expanded &#x3D; this.dialogService.isOpen;
	}

	/**
	 * Helper method to call dialogService &#x27;close&#x27;.
	 * - Enforce accessibility by updating an aria attr for nativeElement.
	 */
	close() {
		this.dialogService.close(this.viewContainerRef);
		this.expanded &#x3D; false;
	}

	/**
	 * Empty method for child classes to override and specify additional init steps.
	 * Run after DialogDirective completes it&#x27;s ngOnInit.
	 * @protected
	 */
	protected onDialogInit() {}
}
</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>