Skip to content

safadig/nl.fokkezb.form

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNMAINTAINED: I'm no longer actively maintaining this project. If you'd like to take it over, create an issue requesting so. If you've found an issue, send me a PR and I may still be able to review and merge.

Alloy Form Widget Appcelerator Alloy

An Alloy Widget to create a form using a TableView, much like the familiar settings views on iOS.

Get it gitTio

Install via gitTio:

$ gittio install nl.fokkezb.form

Or download a release, extract it to your app's app/widgets/nl.fokkezb.form folder and add the dependency to your config.json:

{
	..
	"dependencies": {
	    "nl.fokkezb.form": "*"
	    ..
	  }
}	

Use it

Consult the documentation for all options, e.g. to create:

index.js

var form = Alloy.createWidget('nl.fokkezb.form', {
  fieldsets: [{
    legend: 'My form',
    fields: [{
      name: 'name',
      label: 'Your name',
      type: 'text'
    }, {
      name: 'email',
      label: 'Your email address',
      type: 'text',
      format: 'email'
    }, {
      name: 'like',
      label: 'Do you like it?',
      type: 'switch'
    }]
  }]
});
$.index.add(form.getView());
$.index.open();

Screenshot

Screenshot

License

The MIT License (MIT)

Copyright (c) 2014 Fokke Zandbergen

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.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

[UNMAINTAINED] Alloy TableView Form Widget

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%