Skip to content

Instantly share code, notes, and snippets.

@shadowhand
Created May 6, 2014 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadowhand/21fe76fb2df1368e2f64 to your computer and use it in GitHub Desktop.
Save shadowhand/21fe76fb2df1368e2f64 to your computer and use it in GitHub Desktop.
new DataProviderModel({
id: 'email',
name: 'Email Server',
type: 'email',
enabled: true,
config: {
'server': 'mail.example.com',
'port': 25,
'username': 'user@example.com',
'password': 'secret'
},
form: {
'server' : {
label: 'Server',
input: 'text',
description: ''
},
'port' : {
label: 'Port',
input: 'number',
description: ''
},
'username' : {
label: 'Username',
input: 'text',
description: ''
},
'password' : {
label: 'Password',
input: 'password',
description: ''
}
}
}, { parse : true })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment