Giter Site home page Giter Site logo

emsegmentedcontrol's Introduction

/*EMSegmentedControl.js Description: A drop-in replacement for standard input radio matrices, that creates a toggleable segmented control. Based on work from : Collin Henderson - http://syropia.net - [email protected] Modification : Yves-Gael Billet Version: 1.0

What is EMSegmentedControl?

EMSegmentedControl is a drop-in replacement for standard HTML radio groups that aims at the idea of selectable segments instead of radio buttons.

What is EMSegmentedControlExtend?

EMSegmentedControlExtend is based on EMSegmentedControl (Collin Henderson). It now support checkbox.

Difference between radiobutton and checkbox ?

Radio buttons allow only one selection whereas Checkboxs allow multiple selection.

Neat! How do I use it?

  1. Be sure to include the Jquery library, as well as the EMSegmentedControl javascript, and css file in your tag. Make sure you load Jquery before you load EMSegmentedControl.
  2. Now you must initialize the plugin. You're actually going to apply the plugin to a containing <div>. So make sure to wrap each radio group in a div tag and give it a class or id. Please see the demo page on proper structure.

I can't see my original radio buttons anymore. How is the value going to be stored?

Fear not, your radio buttons are just hidden, and the plugin is controlling their state. All values will be captured, just like using a regular radio group.

I wanna make it fit my site!

Cool, everything is drawn in CSS3, so hop in to the CSS file and go nuts.

emsegmentedcontrol's People

Stargazers

 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.