A simple module for creating a dropdown menu.
or
- Copy the
Dropdown.coffee
file to your prototype'smodules
folder. - Call
{dropdown} = require "Dropdown"
in your Framer prototype.
# Use dropdown -> ( layerTrigger, layerDropdown, layerTriggerBgColour[optional], "true" -> update text selected for layerTrigger )
dropdown.Dropdown(Selector, Dropdown, "#fcfcfc", true)