Skip to content

Commit

Permalink
fix(overlay, toggle): rename option
Browse files Browse the repository at this point in the history
  • Loading branch information
Lipata committed Jul 17, 2020
1 parent 0c0190a commit 5454f38
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion en/components/overlay_main.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ defaultOverlaySettings = {
scrollStrategy: new NoOpScrollStrategy(),
modal: true,
closeOnOutsideClick: true,
closeOnEsc: false
closeOnEscape: false
};
```
<div class="divider--half"></div>
Expand Down
4 changes: 2 additions & 2 deletions en/components/toggle.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ In the next sample, we'll use a different positioning strategy so that the conte
The `igxToggle` directive uses the [`IgxOverlayService`]({environment:angularApiUrl}/classes/igxoverlayservice.html) provider. The `open`, `close` and `toggle` methods accept optional overlay settings that control how the content is displayed. If omitted, the default overlay settings are used as seen in the previous sample.

>[!NOTE]
> By default, the [`closeOnOutsideClick`]({environment:angularApiUrl}/interfaces/overlaysettings.html#closeonoutsideclick) property is set to `true`. In order to disable this functionality, the property has to be set to `false`. Additionally, the [`closeOnEsc`]({environment:angularApiUrl}/interfaces/overlaysettings.html#closeonesc) property defaults to `false`, so in order to make use of it, we have to set it to `true`.
> By default, the [`closeOnOutsideClick`]({environment:angularApiUrl}/interfaces/overlaysettings.html#closeonoutsideclick) property is set to `true`. In order to disable this functionality, the property has to be set to `false`. Additionally, the [`closeOnEscape`]({environment:angularApiUrl}/interfaces/overlaysettings.html#closeonescape) property defaults to `false`, so in order to make use of it, we have to set it to `true`.
```typescript
// template.component.ts
Expand All @@ -99,7 +99,7 @@ The `igxToggle` directive uses the [`IgxOverlayService`]({environment:angularApi

public _overlaySettings = {
closeOnOutsideClick: false,
closeOnEsc: true,
closeOnEscape: true,
positionStrategy: new ConnectedPositioningStrategy(this._positionSettings)
};

Expand Down
2 changes: 1 addition & 1 deletion jp/components/overlay_main.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ defaultOverlaySettings = {
scrollStrategy: new NoOpScrollStrategy(),
modal: true,
closeOnOutsideClick: true,
closeOnEsc: false
closeOnEscape: false
};
```
<div class="divider--half"></div>
Expand Down
2 changes: 1 addition & 1 deletion kr/components/overlay_main.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ defaultOverlaySettings = {
scrollStrategy: new NoOpScrollStrategy(),
modal: true,
closeOnOutsideClick: true,
closeOnEsc: false
closeOnEscape: false
};
```
<div class="divider--half"></div>
Expand Down

0 comments on commit 5454f38

Please sign in to comment.