Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Add missing SideNav options #221

Merged
merged 1 commit into from
Oct 16, 2017
Merged

Add missing SideNav options #221

merged 1 commit into from
Oct 16, 2017

Conversation

jfcere
Copy link
Contributor

@jfcere jfcere commented Oct 15, 2017

Handle missing options for SideNav according to http://materializecss.com/side-nav.html#options.

Note that @types/materialize-css is not up to date so I had to cast the options to any while my PR is being approved DefinitelyTyped/DefinitelyTyped#20597.

Fixes #215

@@ -48,10 +51,13 @@ export class MzSidenavComponent implements AfterViewInit, OnDestroy {
this.renderer.setElementAttribute(collapseButton, 'data-activates', this.id);

// Initialize collapsible button for side navigation
$(collapseButton).sideNav({
$(collapseButton).sideNav(<any>{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be cast as SidenavOptions object from typing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read the comment of the PR ;)

@scote scote merged commit 4cdb54b into master Oct 16, 2017
@scote scote deleted the sidenav-options branch October 16, 2017 20:21
@jfcere jfcere added this to the 1.7.0 milestone Oct 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants