Skip to content

Commit

Permalink
Mark overlay property as readOnly
Browse files Browse the repository at this point in the history
- Remove @Private from overlay js doc
- Mark overlay as readOnly
- Add @Private to lifecycle methods
  • Loading branch information
DiegoCardoso committed Apr 10, 2019
1 parent f4f7e5f commit c4b0c2f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/vaadin-app-layout.html
Expand Up @@ -216,11 +216,11 @@

/**
* Drawer is an overlay on top of the content
* Controlled via CSS using --vaadin-app-layout-drawer-overlay: true|false;
* @private
* Controlled via CSS using `--vaadin-app-layout-drawer-overlay: true|false`;
*/
overlay: {
type: Boolean,
readOnly: true,
value: false,
reflectToAttribute: true
}
Expand All @@ -234,6 +234,9 @@
this.__drawerToggleClickListener = this._drawerToggleClick.bind(this);
}

/**
* @private
*/
connectedCallback() {
super.connectedCallback();

Expand Down Expand Up @@ -265,6 +268,9 @@
this._updateOverlayMode();
}

/**
* @private
*/
disconnectedCallback() {
super.disconnectedCallback();

Expand Down Expand Up @@ -340,7 +346,7 @@
_updateOverlayMode() {
const overlay = this._getCustomPropertyValue('--vaadin-app-layout-drawer-overlay') == 'true';

this.overlay = overlay;
this._setOverlay(overlay);

if (this.overlay) {
this.drawerOpened = false;
Expand Down

0 comments on commit c4b0c2f

Please sign in to comment.