Skip to content

timbrandin/meteor-form-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meteor-form-api

Form API for Meteor

A form would be created by specifying the fields wanted (updated 7/21/13):

{
  title: 'Project',
  fields: {
    title: {
      label: 'Title'
    },

    description: {
      as: 'textarea',
      label: 'Description'
    },

    features: {
      as: 'list',
      label: 'Features',
    },

    team: {
      label: 'Team',
      hint: 'Number of team members'
    },

    skills: {
      as: 'autocomplete',
      label: 'Skills',
      hint: 'Add skills used'
    },

    range: {
      as: 'daterange',
      label: 'Date range'
    }
  },
  actions: {
    cancel: {},
    submit: {
      label: 'Save',
      submit: [
        function() {
          return true;
        }
      ]
    }
  }
}

About

Form API for Meteor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published