Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mpowaga committed Jan 13, 2015
1 parent 2aa65ad commit 0cd9ebf
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Schemas.Cities = new SimpleSchema
location:
type: String
autoform:
type: 'map'
afFieldInput:
type: 'map'
# options
Cities.attachSchema(Schemas.Cities)
Expand All @@ -44,7 +44,21 @@ or
{{/autoForm}}
```

Coordinates will be saved as string in format `latititude,longitude`.
Coordinates will be saved as string in format `latititude,longitude`. Alternatively it can be an object. See schema below:

```
Schemas.Cities = new SimpleSchema
location:
type: String
autoform:
type: 'map'
afFieldInput:
# options
'location.lat':
type: String
'location.lng':
type: String
```

###Options###

Expand Down

0 comments on commit 0cd9ebf

Please sign in to comment.