Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ You can also specify it at the schema level:
```
MySchema = new SimpleSchema({
dateFieldName: {
type: Date
type: Date,
autoform: {
type:"pickadate"
}
Expand Down Expand Up @@ -87,7 +87,7 @@ At the schema level:
```
MySchema = new SimpleSchema({
booleanFieldName: {
type: Boolean
type: Boolean,
autoform: {
type:"switch"
}
Expand All @@ -106,10 +106,10 @@ At the schema level:
```
MySchema = new SimpleSchema({
booleanFieldName: {
type: Boolean
type: Boolean,
autoform: {
type:"switch"
trueLabel:"Online"
type:"switch",
trueLabel:"Online",
falseLabel:"Offline"
}
}
Expand All @@ -126,10 +126,10 @@ At the schema level:
```
MySchema = new SimpleSchema({
booleanFieldName: {
type: Boolean
type: Boolean,
autoform: {
type:"switch"
trueValue:"online"
type:"switch",
trueValue:"online",
falseValue:"offline"
}
}
Expand Down