Giter Site home page Giter Site logo

dropdown-web-component's Introduction

Dropdown custom element project

Dropdown component as web component

The dropdown component gets list data as list input and shows it as dropdown When clicking on one item in the dropdown component, selectionChange event will be triggered

Getting started

Run the index.html

In index.html there is example usage of the custom web component In dropdown-list.js there is the definition of the dropdown-list, also example how to use it and set its values

Requirements

  • The dropdown’s markup and functionality will be inside the custom element according to best practices

  • The dropdown items will be configurable so you can use the same dropdown component for different lists

  • For your ease, you can use this dropdown implementation: https://www.w3schools.com/howto/howto_css_dropdown.asp ,You can of course write your own but it is really unnecessary

  • The dropdown implementation MUST be inside the customElement

  • For presentation, please also create an index.html file with the dropdown

  • When selecting an element, show the selected item on the screen

dropdown-web-component's People

Contributors

saifabusaleh avatar

Watchers

James Cloos avatar  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.