Skip to content

Instantly share code, notes, and snippets.

@josephj
Last active December 19, 2015 21:18
Show Gist options
  • Save josephj/6018762 to your computer and use it in GitHub Desktop.
Save josephj/6018762 to your computer and use it in GitHub Desktop.
Dropform Utility for Keybridge

Dropform

Dropform Screenshot

Why?

  • Popover can't maintain state. It always destroys its content.
  • Dropdown disappears when user clicks.

Markup

<div class="dropform">
  <a href="#" data-toggle="dropform">... Anything Oliver wants...</a>   
  <div class="dropform-body in"></div>
</div>
  • Use data-toggle="dropform" to bind JavaScript automatically.
  • Append .in class name if you want show it by default.

CSS

dropform.css.sass

  • The default style of .dropform will be display:inline-block

JavaScript

dropform.js.coffee

@hSATAC
Copy link

hSATAC commented Jul 17, 2013

This is super solid. Deploy this ASAP please.

@hSATAC
Copy link

hSATAC commented Jul 17, 2013

@aar0nTw please also review this we should make Oliver satisfied.

@oliverlin
Copy link

Excellent!
It seems that I can put everything I want in there.

@aar0nTw
Copy link

aar0nTw commented Jul 17, 2013

Awesome, Pls implement, and open source it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment