Last active
August 4, 2016 11:12
-
-
Save reecefowell/4357386 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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