Icontem

RadiogramJS: Radio like choice from options defined as HTML

Recommend this page to a friend!
  Info   View files Example   Demos   Screenshots Screenshots   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-04-30 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 113 All time: 390 This week: 19Up
Version License JavaScript version Categories
radiogram 1.1MIT/X Consortium ...1.0Forms
Description Author

This object implements a user interface like a radio button to choose from multiple options defined as HTML blocks.

It creates form radio inputs and associates them to given HTML blocks that present each of the options to be made available to the users.

It checks the respective radio inputs when the displayed HTML blocks are selected by the user.

Innovation Award
JavaScript Programming Innovation award nominee
January 2016
Number 2
Radio buttons are used to let users pick one option from a list. Usually radio buttons appear with the same visual.

This JavaScript object can display radio like choice buttons displayed as given HTML blocks, so each option is displayed with very configurable presentation style.

Manuel Lemos
  Performance   Level  
Name: Farhadur Rahim <contact>
Classes: 2 packages by
Country: Bangladesh Bangladesh
Age: 35
All time rank: 1342 in Bangladesh Bangladesh
Week rank: 10 Up1 in Bangladesh Bangladesh Up
Innovation award
Innovation award
Nominee: 2x

Details

alt text

Expose The Most Stylist Radio Buttons:

Join the chat at https://gitter.im/webmechanicx/radiogram js-standard-style Bitdeli Badge

Introduction

Radiogram is a very small (2kb after mini) JS Utility that designed and written in pure javascript to expose a custom looks for native radio buttons. *"DON'T GET MISS UNDERSTOOD"* because this utility does not work like the way traditional framework does.

Advantage:

  1. *in minimum afford and time* you get stylist Radio Button using any of your existing system/frameworks/web assets
  2. *(Freedom always your)* Pick an idea, load your structure and expose on the fly.
  3. Zero Dependency.
  4. No Complex Configuration. Because it is really really very small utility.
  5. Execute for almost any version of the browser.
  6. You can implement CHECK BOX same way by adding yourself as a Contributor...

Usages: How can you initiate or expose

Browser globally (e.g. in HTML):

   <script src="dist/radiogram.js"></script>
   <script>Radiogram.expose(selector,obj);</script>

Define the layout which going to expose.

obj = {
	//attach any valid name common for each radio input button e.g standard or array.
	name	: "form[fieldname][]",
	layout	: [ '<div><span>Radio Button-1</span></div>',
		    '<div><span>Radio Button-2</span></div>',
		    '<div><span>Radio Button-3</span></div>'
		  ]
	};

case:1 Radiogram.expose(Id,obj) has passed ID as a selector its a very common practice.

case:2 Radiogram.expose(Class,obj) has passed CLASS as a selector must be unique.

Examples in Real Life!!!

Live Action: <a href="http://webmechanicx.github.io/radiogram/" target="_blank">Live Examples</a>

screenshots-ui

Cross Browser Support:

<table><thead> <tr> <th align="center"><a href="https://camo.githubusercontent.com/082c7772560325405b65f0bd7324b4fe2da8ab3b/687474703a2f2f692e696d6775722e636f6d2f644a43314755762e706e67" target="_blank"><img src="https://camo.githubusercontent.com/082c7772560325405b65f0bd7324b4fe2da8ab3b/687474703a2f2f692e696d6775722e636f6d2f644a43314755762e706e67" alt="Chrome logo" data-canonical-src="http://i.imgur.com/dJC1GUv.png" style="max-width:100%;" height="48px" width="48px"></a></th> <th align="center"><a href="https://camo.githubusercontent.com/c68f405f8299cba6be937c04c8c4d01e258cb31f/687474703a2f2f692e696d6775722e636f6d2f6f316d355263512e706e67" target="_blank"><img src="https://camo.githubusercontent.com/c68f405f8299cba6be937c04c8c4d01e258cb31f/687474703a2f2f692e696d6775722e636f6d2f6f316d355263512e706e67" alt="Firefox logo" data-canonical-src="http://i.imgur.com/o1m5RcQ.png" style="max-width:100%;" height="48px" width="48px"></a></th> <th align="center"><a href="https://camo.githubusercontent.com/a90336eb5c6930efdade6a5f9a5f575e3bc4f90d/687474703a2f2f692e696d6775722e636f6d2f386833697a35482e706e67" target="_blank"><img src="https://camo.githubusercontent.com/a90336eb5c6930efdade6a5f9a5f575e3bc4f90d/687474703a2f2f692e696d6775722e636f6d2f386833697a35482e706e67" alt="Internet Explorer logo" data-canonical-src="http://i.imgur.com/8h3iz5H.png" style="max-width:100%;" height="48px" width="48px"></a></th> <th align="center"><a href="https://camo.githubusercontent.com/da3fb17f8d67861ed830f4d1488dda4040e184df/687474703a2f2f692e696d6775722e636f6d2f695156346e6d4a2e706e67" target="_blank"><img src="https://camo.githubusercontent.com/da3fb17f8d67861ed830f4d1488dda4040e184df/687474703a2f2f692e696d6775722e636f6d2f695156346e6d4a2e706e67" alt="Opera logo" data-canonical-src="http://i.imgur.com/iQV4nmJ.png" style="max-width:100%;" height="48px" width="48px"></a></th> <th align="center"><a href="https://camo.githubusercontent.com/369185dbc400565efa476f3830d35ffeb9e7c909/687474703a2f2f692e696d6775722e636f6d2f6a3374674e4b4a2e706e67" target="_blank"><img src="https://camo.githubusercontent.com/369185dbc400565efa476f3830d35ffeb9e7c909/687474703a2f2f692e696d6775722e636f6d2f6a3374674e4b4a2e706e67" alt="Safari logo" data-canonical-src="http://i.imgur.com/j3tgNKJ.png" style="max-width:100%;" height="48px" width="48px"></a></th> </tr> </thead><tbody> <tr> <td align="center">43+ ✔</td> <td align="center">38+ ✔</td> <td align="center">8+ ✔</td> <td align="center">32+ ✔</td> <td align="center">8+ ✔</td> </tr> </tbody></table>

The MIT License (<a href="http://opensource.org/licenses/mit-license">MIT</a>)

Copyright(c) 2015-2016 *@webmechanicx - Farhadur Rahim*

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

  RadiogramJSExternal page  

Open in a separate window

Screenshots  
  • price-table-screenshot
  • icon_gym
  • new-booking-example
  • logo-radiogram
  • RadiogramJS
  Files folder image Files  
File Role Description
Files folder imagedist (2 files)
Files folder imagesource (1 file)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file index.html Example Example script
Accessible without login Plain text file index.js Test Unit test script
Accessible without login Plain text file LICENSE Data Auxiliary data
Accessible without login Plain text file README.md Doc. Auxiliary data

  Files folder image Files  /  dist  
File Role Description
  Accessible without login Plain text file radiogram.js Class Class source
  Accessible without login Plain text file radiogram.min.js Class Class source

  Files folder image Files  /  source  
File Role Description
  Accessible without login Plain text file radiogram.js Class Class source

 Version Control Unique User Downloads Download Rankings  
 61%
Total:113
This week:0
All time:390
This week:19Up
User Comments (1)
A Really Great Peace of Cake.
3 years ago (Jeesan)
90%StarStarStarStarStar