jQuery plugin for development and testing HTML forms via populating
Installation is easy. Download Marx.js, link to it with a <script> tag and then initialize it in your JavaScript.
Downloads Development Version 1.1.1 Production Version 1.1.1
<script src="/javascripts/marx.js"></script> <script> $(document).ready(function() { new Marx(); }); </script>
Value | Default | Description |
---|---|---|
controls | standard | select controls provided by MarxJS. See below for options |
form | null | css selector of a specific form in which to effect changes on |
position | bottom-right | top-left, top-right, bottom-right, bottom-left |
ipsum | 3 | default number of paragraphs for the ipsum generator |
ipsum-max | 10 | maximum paragraphs allowed to generate |
onload | false | have marx.js fire on page load. options of true, or an array of all or a subset of [inputs, textareas, checkboxes, radios, selects] |
Control Options
Value | Description |
---|---|
minimum | just the MarxJS button that fills out entire form. |
standard | gives options for populate whole form or individual form field types. |
advanced | all standard options and Clear Form, Populate and Submit, Show Hidden Fields, Expand Select Boxes and Generate Ipsum. |
toggle-advanced | gives both standard and advanced options but hides advanced till you need them |
toggle-all | provides buttons to populate whole form, show standard controls and show advanced controls |
Dependencies
Marx.js has a dependency on jQuery version >= 1.10.x
- Fork it ( http://github.com/Sparkmasterflex/marxjs-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request