Skip to content

Instantly share code, notes, and snippets.

View jamesjjk's full-sized avatar
💭
I may be slow to respond.

jjk jamesjjk

💭
I may be slow to respond.
View GitHub Profile
@jamesjjk
jamesjjk / gist:79a7b76a877d77baaa46
Created September 1, 2015 16:01
How to limit number of selection for the react widget multiselector.
class MultiSelector extends React.Component {
static propTypes = {
valueField: PropTypes.string.isRequired,
textField: PropTypes.string.isRequired,
limit: PropTypes.number,
placeholder: PropTypes.string,
label: PropTypes.string,
items: PropTypes.array.isRequired
}