question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pushpin feature doc

See original GitHub issue

It seems that the docs of Pushpin are not up to date with the demo site itself. Neither is there a class called ‘tabs-wrapper’ in the DOM-Tree, nor is there a valid HTML code example in the docs.

Therefore I struggle to get the following structure running…

<div class="row">
    <div class="col s12 m3 l2">
        <div class="tabs-wrapper">
            <p>I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively.</p>
            <a href="#">This is a link</a>
            <a href="#">This is a link</a>
        </div>
    </div>
    <div class="col s12 m9 l10">
        <div ui-view class="uiview container"> </div>
    </div>
</div>

Since the docs do not tell how to use that class and where to put it and there is also no reliable code in the HTML itself, please fix that. And keep up the good work 😃

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
salmanulfarzycommented, Nov 9, 2016

This file has an working example, pushpin.html.

Here are the relevant sections.

HTML

<nav>
    <div class="nav-wrapper">
        <a href="#" class="brand-logo">Dynamic Top and Bottom at 500px</a>
        <ul id="nav-mobile" class="right hide-on-med-and-down">
            <li><a id="removePushPin" class="waves-effect waves-light btn">Remove PushPin</a></li>
            <li><a id="topTo200" class="waves-effect waves-light btn">Change Top to 200px</a></li>
            <li><a id="bottomTo200" class="waves-effect waves-light btn">Change Bottom to 200px</a></li>
        </ul>
    </div>
</nav>

JS

$( document ).ready(function() {
$('nav').pushpin({
  top: $('nav').offset().top,
  bottom: 500
});

$(window).on('scroll', function() {
  $('#scrollTop').text($(window).scrollTop());
});

$('#removePushPin').on('click', function() {
  $('nav').pushpin('remove');
});

$('#bottomTo200').on('click', function() {
  $('nav').pushpin({
    bottom: 200
  });
});

$('#topTo200').on('click', function() {
  $('nav').pushpin({
    top: 200
  });
});
});
0reactions
acburstcommented, Nov 11, 2016

Added a demo to pushpin in 6c1aaaf

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation | About - Pushpin
Pushpin communicates with backend web applications using regular, short-lived HTTP requests. This allows backend applications to be written in any language and ...
Read more >
Using the Push Pin in Microsoft Applications - IT Training Tips
Use the Push Pin to “Pin” a Recent Document or Folder. One place where you will see this push pin is when viewing...
Read more >
Pushpin Class - Bing Maps | Microsoft Learn
Describes the pushpin class and provides the class's constructor and tables that outline the class's methods, properties, and events.
Read more >
automerge/pushpin: A collaborative corkboard app - GitHub
PushPin supports taking notes, and can archive web content, images, PDFs, audio, video, and any other files you might want to hang out....
Read more >
Pushpin - Materialize
Pushpin is our fixed positioning plugin. Use this to pin elements to your page ... addEventListener('DOMContentLoaded', function() { var elems = document.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found