Coder Social home page Coder Social logo

select's Introduction

Select Drop Down Menu

npm

Features

  • Standard style (Estido padrão para todos os navegadores)
  • Automatic resizing (Redimencinamento automático com barra de rolagem automática)

Estrutura

  • select

    • id - Relaciona-se com o name do input
  • output

<div class="select-output">Escholha seu estado</div>
  • .select-output - required
  • output CSS - Estilos personalizáveis
    background-color
    padding-(top, right, bottom, left)
    width
  • option
<div value="Brazil" class="option">Brazil</div>
  • .option - required
  • attr value - required
  • .selected - Opção selecionada
  • .disabled - This Boolean attribute indicates that the user cannot interact with the control
  • Separator Elemento reponsavel pela linha horizontal que divide elementos
<hr class="separator"> 
  • small Tagname
  • .separator required
  • Option Group
    <small class="optgroup">Nome do grupo</small>
  • small Tagname
  • .optgroup required

Resultado

<div class="select" id="state3">
    <div class="select-output">Escholha seu estado</div>
    <div class="options" id="1">
        <div value="AC" class="option">Acre</div>
        <div value="AL" class="option">Alagoas</div>
        <div value="AP" class="option">Amapá</div>
        <div value="AM" class="option">Amazonas</div>
        <small class="optgroup">Surdeste</small>
        <div value="BA" class="option">Bahia</div>
        <div value="CE" class="option">Ceará</div>
        <div value="DF" class="option">Distrito Federal</div>
        <div value="ES" class="option">Espírito Santo</div>
        <hr class="separator">
        <div value="GO" class="option">Goiás</div>
        <div value="MA" class="option">Maranhão</div>
        <div value="MT" class="option">Mato Grosso</div>
        <div value="MS" class="option">Mato Grosso do Sul</div>
        <div value="MG" class="option">Minas Gerais</div>
        <div value="PA" class="option">Pará</div>
    </div>
</div>

Dependences

select's People

Contributors

guilhermehenry avatar

Watchers

 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.