Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$(this).select2({
tags: $(this).data('tag-license-table'),
tokenSeparators: [",", " "]
})
// values go between braces, and have looking format
// i.e key: value
Here is a longer example with deeper nesting
$(this).foobar({
defaults: {
interval: 10000,
seconds: {
inMinute: 60,
inHour: (60 * 60),
inDay: (60 * 60 * 24),
inWeek: (60 * 60 * 24 * 7),
inMonth: (60 * 60 * 24 * 7 * 4),
inYear: (60 * 60 * 24 * 365)
}
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.