d3plus-form

Javascript rendered input forms.

Usage no npm install needed!

<script type="module">
  import d3plusForm from 'https://cdn.skypack.dev/d3plus-form';
</script>

README

d3plus-form

NPM Release Build Status Dependency Status Gitter

Javascript rendered input forms.

Installing

If you use NPM, run npm install d3plus-form --save. Otherwise, download the latest release. The released bundle supports AMD, CommonJS, and vanilla environments. You can also load directly from d3plus.org:

<script src="https://d3plus.org/js/d3plus-form.v0.3.full.min.js"></script>

API Reference


Button <>

This is a global class, and extends all of the methods and functionality of BaseClass.

# new Button()

Creates a set of HTML radio input elements.

# Button.render() <>

Renders the element to the page.

This is a static method of Button, and is chainable with other methods of this Class.

# Button.buttonStyle([value]) <>

Sets the css styles for the elements.

This is a static method of Button, and is chainable with other methods of this Class.

# Button.container([selector]) <>

If selector is specified, sets the SVG container element to the specified d3 selector or DOM element and returns the current class instance. If selector is not specified, returns the current SVG container element, which is undefined by default.

This is a static method of Button, and is chainable with other methods of this Class.

# Button.text([value]) <>

Sets the inner text for each