Coder Social home page Coder Social logo

yingminchen5931 / iron-dropdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from polymerelements/iron-dropdown

0.0 1.0 0.0 194 KB

An unstyled element that works similarly to a native browser select

Home Page: https://www.webcomponents.org/element/PolymerElements/iron-dropdown

HTML 100.00%

iron-dropdown's Introduction

Build status

Demo and API docs

<iron-dropdown>

<iron-dropdown> is a generalized element that is useful when you have hidden content (dropdown-content) that is revealed due to some change in state that should cause it to do so.

Note that this is a low-level element intended to be used as part of other composite elements that cause dropdowns to be revealed.

Examples of elements that might be implemented using an iron-dropdown include comboboxes, menubuttons, selects. The list goes on.

The <iron-dropdown> element exposes attributes that allow the position of the dropdown-content relative to the dropdown-trigger to be configured.

<iron-dropdown horizontal-align="right" vertical-align="top">
  <div slot="dropdown-content">Hello!</div>
</iron-dropdown>

In the above example, the <div> assigned to the dropdown-content slot will be hidden until the dropdown element has opened set to true, or when the open method is called on the element.

Changes in 2.0

  • Removed the private property _focusTarget which was deprecated.
  • neon-animation 2.0 doesn't import the Web Animations polyfill, so you'll have to import it (see example)

iron-dropdown's People

Contributors

blasten avatar cdata avatar danbeam avatar dfreedm avatar dzhioev avatar e111077 avatar garlicnation avatar naoak avatar notwaldorf avatar oddg avatar rictic avatar rubenstolk avatar tedium-bot avatar tjsavage avatar valdrinkoshi avatar web-padawan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.