UNPKG

carbon-components-angular

Version:
1,288 lines (1,112 loc) 81.7 kB
<!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>carbon-components-angular documentation</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="../images/favicon.ico"> <link rel="stylesheet" href="../styles/style.css"> <link rel="stylesheet" href="../styles/dark.css"> <style> footer.carbon { position: absolute; bottom: 0; width: 100%; z-index: 9999; } #root > div { /* * Subtracting the height of the footer to prevent * overlaying the footer ontop of content */ height: calc(100vh - 48px); } </style> </head> <body> <script> // Blocking script to avoid flickering dark mode // Dark mode toggle button var useDark = window.matchMedia('(prefers-color-scheme: dark)'); var darkModeState = useDark.matches; var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input'); var $darkModeToggles = document.querySelectorAll('.dark-mode-switch'); var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state'); function checkToggle(check) { for (var i = 0; i < $darkModeToggleSwitchers.length; i++) { $darkModeToggleSwitchers[i].checked = check; } } function toggleDarkMode(state) { if (window.localStorage) { localStorage.setItem('compodoc_darkmode-state', state); } checkToggle(state); const hasClass = document.body.classList.contains('dark'); if (state) { for (var i = 0; i < $darkModeToggles.length; i++) { $darkModeToggles[i].classList.add('dark'); } if (!hasClass) { document.body.classList.add('dark'); } } else { for (var i = 0; i < $darkModeToggles.length; i++) { $darkModeToggles[i].classList.remove('dark'); } if (hasClass) { document.body.classList.remove('dark'); } } } useDark.addEventListener('change', function (evt) { toggleDarkMode(evt.matches); }); if (darkModeStateLocal) { darkModeState = darkModeStateLocal === 'true'; } toggleDarkMode(darkModeState); </script> <div class="navbar navbar-default navbar-fixed-top d-md-none p-0"> <div class="d-flex"> <a href="../" class="navbar-brand">carbon-components-angular documentation</a> <button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button> </div> </div> <div class="xs-menu menu" id="mobile-menu"> <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu> </div> <div class="container-fluid main"> <div class="row main"> <div class="d-none d-md-block menu"> <compodoc-menu mode="normal"></compodoc-menu> </div> <!-- START CONTENT --> <div class="content component"> <div class="content-data"> <ol class="breadcrumb"> <li class="breadcrumb-item">Components</li> <li class="breadcrumb-item" class="breadcrumb-item deprecated-name" > OverflowMenuCustomPane</li> </ol> <ul class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a href="#info" class="nav-link active" role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a> </li> <li class="nav-item"> <a href="#source" class="nav-link" role="tab" id="source-tab" data-bs-toggle="tab" data-link="source">Source</a> </li> <li class="nav-item"> <a href="#tree" class="nav-link" role="tab" id="tree-tab" data-bs-toggle="tab" data-link="dom-tree">DOM Tree</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/overflow-menu/overflow-menu-custom-pane.component.ts</code> </p> <p class="comment"> <h3 class="deprecated">Deprecated</h3> </p> <p class="comment"> as of v5 Use Toggletip or Popover components instead </p> <p class="comment"> <h3>Description</h3> </p> <p class="comment"> <p>Use Toggletip or Popover components instead</p> </p> <p class="comment"> <h3>Extends</h3> </p> <p class="comment"> <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </p> <p class="comment"> <h3>Implements</h3> </p> <p class="comment"> <code>AfterViewInit</code> </p> <section data-compodoc="block-metadata"> <h3>Metadata</h3> <table class="table table-sm table-hover metadata"> <tbody> <tr> <td class="col-md-3">selector</td> <td class="col-md-9"><code>cds-overflow-custom-menu-pane, ibm-overflow-custom-menu-pane</code></td> </tr> <tr> <td class="col-md-3">template</td> <td class="col-md-9"><pre class="line-numbers"><code class="language-html">&lt;div [attr.id]&#x3D;&quot;dialogConfig.compID&quot; [attr.aria-label]&#x3D;&quot;dialogConfig.menuLabel&quot; [attr.data-floating-menu-direction]&#x3D;&quot;placement ? placement : null&quot; [ngClass]&#x3D;&quot;{&#x27;cds--overflow-menu--flip&#x27;: dialogConfig.flip}&quot; class&#x3D;&quot;cds--overflow-menu-options cds--overflow-menu-options--open&quot; role&#x3D;&quot;menu&quot; (click)&#x3D;&quot;onClick($event)&quot; #dialog [attr.aria-label]&#x3D;&quot;dialogConfig.menuLabel&quot;&gt; &lt;ng-template [ngTemplateOutlet]&#x3D;&quot;dialogConfig.content&quot; [ngTemplateOutletContext]&#x3D;&quot;{overflowMenu: this}&quot;&gt; &lt;/ng-template&gt; &lt;/div&gt; </code></pre></td> </tr> </tbody> </table> </section> <section data-compodoc="block-index"> <h3 id="index">Index</h3> <table class="table table-sm table-bordered index-table"> <tbody> <tr> <td class="col-md-4"> <h6><b>Properties</b></h6> </td> </tr> <tr> <td class="col-md-4"> <ul class="index-list"> <li> <span class="modifier">Protected</span> <a href="#addGap" >addGap</a> </li> <li> <span class="modifier">Protected</span> <a href="#animationFrameSubscription" >animationFrameSubscription</a> </li> <li> <span class="modifier">Public</span> <a href="#data" >data</a> </li> <li> <span class="modifier"></span> <a href="#dialog" >dialog</a> </li> <li> <span class="modifier">Public</span> <a href="#placement" >placement</a> </li> <li> <span class="modifier">Protected</span> <a href="#placements" >placements</a> </li> <li> <span class="modifier">Protected</span> <a href="#visibilitySubscription" >visibilitySubscription</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="#onClick" >onClick</a> </li> <li> <a href="#onDialogInit" >onDialogInit</a> </li> <li> <a href="#afterDialogViewInit" >afterDialogViewInit</a> </li> <li> <span class="modifier"></span> <a href="#clickClose" >clickClose</a> </li> <li> <span class="modifier">Public</span> <a href="#doClose" >doClose</a> </li> <li> <span class="modifier"></span> <a href="#escapeClose" >escapeClose</a> </li> <li> <a href="#ngAfterViewInit" >ngAfterViewInit</a> </li> <li> <a href="#ngOnDestroy" >ngOnDestroy</a> </li> <li> <a href="#ngOnInit" >ngOnInit</a> </li> <li> <a href="#placeDialog" >placeDialog</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="#dialogConfig" >dialogConfig</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="#close" >close</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="#document:click" >document:click</a> </li> <li> <a href="#keydown" >keydown</a> </li> </ul> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-constructor"> <h3 id="constructor">Constructor</h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <code>constructor(elementRef: ElementRef, i18n: <a href="../injectables/I18n.html" target="_self">I18n</a>, animationFrameService: <a href="../injectables/AnimationFrameService.html" target="_self">AnimationFrameService</a>, elementService: <a href="../injectables/ElementService.html" target="_self">ElementService</a>)</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="33" class="link-to-prism">src/dialog/overflow-menu/overflow-menu-custom-pane.component.ts:33</a></div> </td> </tr> <tr> <td class="col-md-4"> <div> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Type</td> <td>Optional</td> </tr> </thead> <tbody> <tr> <td>elementRef</td> <td> <code>ElementRef</code> </td> <td> No </td> </tr> <tr> <td>i18n</td> <td> <code><a href="../injectables/I18n.html" target="_self" >I18n</a></code> </td> <td> No </td> </tr> <tr> <td>animationFrameService</td> <td> <code><a href="../injectables/AnimationFrameService.html" target="_self" >AnimationFrameService</a></code> </td> <td> No </td> </tr> <tr> <td>elementService</td> <td> <code><a href="../injectables/ElementService.html" target="_self" >ElementService</a></code> </td> <td> No </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-inputs"> <h3 id="inputs">Inputs</h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="dialogConfig"></a> <b>dialogConfig</b> </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" colspan="2"> <div class="io-line">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:41</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Receives <code>DialogConfig</code> interface object with properties of <code>Dialog</code> explicitly defined.</p> </div> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-outputs"> <h3 id="outputs">Outputs</h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="close"></a> <b>close</b> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="../interfaces/CloseMeta.html" target="_self" >EventEmitter&lt;CloseMeta&gt;</a></code> </td> </tr> <tr> <td class="col-md-4" colspan="2"> <div class="io-line">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-2" colspan="2"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:36</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Emits event that handles the closing of a <code>Dialog</code> object.</p> </div> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-methods"> <h3>HostListeners</h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="document:click"></a> <span class="name"> <span ><b>document:click</b></span> <a href="#document:click"><span class="icon ion-ios-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>document:click(event)</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:229</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Sets up a event Listener to close <code>Dialog</code> if click event occurs outside <code>Dialog</code> object.</p> </div> <div class="io-description"> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Optional</td> </tr> </thead> <tbody> <tr> <td>event</td> <td> No </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="keydown"></a> <span class="name"> <span ><b>keydown</b></span> <a href="#keydown"><span class="icon ion-ios-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>keydown(event: KeyboardEvent)</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:206</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Sets up a KeyboardEvent to close <code>Dialog</code> with Escape key.</p> </div> <div class="io-description"> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Optional</td> </tr> </thead> <tbody> <tr> <td>event</td> <td> No </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </section> <section data-compodoc="block-methods"> <h3 id="methods"> Methods </h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="onClick"></a> <span class="name"> <span ><b>onClick</b></span> <a href="#onClick"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <code>onClick(event)</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <a href="" data-line="44" class="link-to-prism">src/dialog/overflow-menu/overflow-menu-custom-pane.component.ts:44</a></div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Optional</td> </tr> </thead> <tbody> <tr> <td>event</td> <td> No </td> </tr> </tbody> </table> </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> <div class="io-description"> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="onDialogInit"></a> <span class="name"> <span ><b>onDialogInit</b></span> <a href="#onDialogInit"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <code>onDialogInit()</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:51</a></code> </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="afterDialogViewInit"></a> <span class="name"> <span ><b>afterDialogViewInit</b></span> <a href="#afterDialogViewInit"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <code>afterDialogViewInit()</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:157</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Empty method to be overridden by consuming classes to run any additional initialization code after the view is available. NOTE: this does <em>not</em> guarantee the dialog will be positioned, simply that it will exist in the DOM</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="clickClose"></a> <span class="name"> <span class="modifier"></span> <span ><b>clickClose</b></span> <a href="#clickClose"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <span class="modifier-icon icon ion-ios-reset"></span> <code>clickClose(event)</code> </td> </tr> <tr> <td class="col-md-4"> <b>Decorators : </b> <br /> <code>@HostListener(&#x27;document:click&#x27;, [&#x27;$event&#x27;])<br /></code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:229</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Sets up a event Listener to close <code>Dialog</code> if click event occurs outside <code>Dialog</code> object.</p> </div> <div class="io-description"> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Optional</td> </tr> </thead> <tbody> <tr> <td>event</td> <td> No </td> </tr> </tbody> </table> </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> <div class="io-description"> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="doClose"></a> <span class="name"> <span class="modifier">Public</span> <span ><b>doClose</b></span> <a href="#doClose"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <span class="modifier-icon icon ion-ios-reset"></span> <code>doClose(meta: <a href="../interfaces/CloseMeta.html" target="_self">CloseMeta</a>)</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:242</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Closes <code>Dialog</code> object by emitting the close event upwards to parents.</p> </div> <div class="io-description"> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Type</td> <td>Optional</td> <td>Default value</td> </tr> </thead> <tbody> <tr> <td>meta</td> <td> <code><a href="../interfaces/CloseMeta.html" target="_self" >CloseMeta</a></code> </td> <td> No </td> <td> <code>{ reason: CloseReasons.interaction }</code> </td> </tr> </tbody> </table> </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> <div class="io-description"> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="escapeClose"></a> <span class="name"> <span class="modifier"></span> <span ><b>escapeClose</b></span> <a href="#escapeClose"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <span class="modifier-icon icon ion-ios-reset"></span> <code>escapeClose(event: KeyboardEvent)</code> </td> </tr> <tr> <td class="col-md-4"> <b>Decorators : </b> <br /> <code>@HostListener(&#x27;keydown&#x27;, [&#x27;$event&#x27;])<br /></code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:206</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Sets up a KeyboardEvent to close <code>Dialog</code> with Escape key.</p> </div> <div class="io-description"> <b>Parameters :</b> <table class="params"> <thead> <tr> <td>Name</td> <td>Type</td> <td>Optional</td> </tr> </thead> <tbody> <tr> <td>event</td> <td> <code>KeyboardEvent</code> </td> <td> No </td> </tr> </tbody> </table> </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> <div class="io-description"> </div> </td> </tr> </tbody> </table> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="ngAfterViewInit"></a> <span class="name"> <span ><b>ngAfterViewInit</b></span> <a href="#ngAfterViewInit"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <code>ngAfterViewInit()</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:105</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>After the DOM is ready, focus is set and dialog is placed in respect to the parent element.</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="ngOnDestroy"></a> <span class="name"> <span ><b>ngOnDestroy</b></span> <a href="#ngOnDestroy"><span class="icon ion-ios-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">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:249</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>At destruction of component, <code>Dialog</code> unsubscribes from all the subscriptions.</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="ngOnInit"></a> <span class="name"> <span ><b>ngOnInit</b></span> <a href="#ngOnInit"><span class="icon ion-ios-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">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:93</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Initialize the <code>Dialog</code>, set the placement and gap, and add a <code>Subscription</code> to resize events.</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="placeDialog"></a> <span class="name"> <span ><b>placeDialog</b></span> <a href="#placeDialog"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <code>placeDialog()</code> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Inherited from <code><a href="../components/Dialog.html" target="_self" >Dialog</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-line">Defined in <code><a href="../components/Dialog.html#source" target="_self" >Dialog:162</a></code> </div> </td> </tr> <tr> <td class="col-md-4"> <div class="io-description"><p>Uses the position service to position the <code>Dialog</code> in screen space</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> </section> <section data-compodoc="block-properties"> <h3 id="inputs"> Properties </h3> <table class="table table-sm table-bordered"> <tbody> <tr> <td class="col-md-4"> <a name="addGap"></a> <span class="name"> <span class="modifier">Protected</span> <span ><b>addGap</b></span> <a href="#addGap"><span class="icon ion-ios-link"></span></a> </span> </td> </tr> <tr> <td class="col-md-4"> <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code> </td> </tr> <tr> <td class="col-md-4"> <i>Default value : </i><code>{ &quot;left&quot;: pos &#x3D;&gt; position.addOffset(pos, 0, -this.dialogConfig.gap), &quot;right&quot;: pos &#x3D;&gt; position.addOffset(pos, 0, this.dialogConfig.gap), &quot;top&quot;: pos &#x3D;&gt; position.addOffset(pos, -this.dialogConfig.gap), &quot;bottom&quot;: pos &#x3D;&gt; position.addOffset(pos, this.dialogConfig.gap), &quot;left-bottom&quot;: pos &#x3D;&gt; position.addOffset(pos, 0, -this.dialogConfig.gap), &quot;right-bottom&quot;: pos &#x3D;&gt; position.addOffset(pos, 0, this.dialogConfig.gap) }</code> </td> </tr> <tr> <td