Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is pushpin supported ? #307

Closed
ghost opened this issue Jun 27, 2017 · 2 comments
Closed

Is pushpin supported ? #307

ghost opened this issue Jun 27, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 27, 2017

Hi

From materialize official page:

  $('.pushpin-demo-nav').each(function() {
    var $this = $(this);
    var $target = $('#' + $(this).attr('data-target'));
    $this.pushpin({
      top: $target.offset().top,
      bottom: $target.offset().top + $target.outerHeight() - $this.height()
    });
  });

Is such logic possible right now with the [materialize] and [materializeParams] inputs ?

More precisely, is that possible to pass bottom: $target.offset().top + $target.outerHeight() - $this.height() in the materializeParams ?

Regards

@ghost ghost closed this as completed Jun 27, 2017
@ghost
Copy link
Author

ghost commented Jun 27, 2017

The obvious answer is, yes.
Using # to name this and target elements from the template and then pass the values to materializeParams.

@jaimeplier
Copy link

Hi, would you mind showing that last part? I didn't get the Using # to name this

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant