Skip to content

Commit

Permalink
Use new dataSource in <Dropdown/>
Browse files Browse the repository at this point in the history
  • Loading branch information
soyjavi committed Jul 3, 2015
1 parent fca4d8a commit 79f5cd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/components/form.cjsx
Expand Up @@ -3,6 +3,7 @@
###

Form = require '../../components/form'
Input = require '../../components/input'

module.exports = React.createClass

Expand Down Expand Up @@ -31,7 +32,7 @@ module.exports = React.createClass
,
ref: "girl_2", type: "radio", label: "Are you a girl_2?", value: false, disabled: true
,
ref: "type_user", type: "dropdown", label: "Type of user", dataSource: {1: "Normal", 2: "Root"}
ref: "type_user", type: "dropdown", label: "Type of user", dataSource: [{value: 1, label: "Normal"}, {value: 2, label: "Root"}]
,
type: "submit", caption: "Send", style: "primary anchor", disabled: true
]
Expand Down

0 comments on commit 79f5cd8

Please sign in to comment.