Sha256: 92d19927dbfe951876c5f079b0a789665b8ad9ff23a191ce0b1809aeef8da09f

Contents?: true

Size: 949 Bytes

Versions: 2

Compression:

Stored size: 949 Bytes

Contents

# -----------------------------------------------------------------------------
# Author: Alexander Kravets <alex@slatestudio.com>,
#         Slate Studio (http://www.slatestudio.com)
#
# Coding Guide:
#   https://github.com/thoughtbot/guides/tree/master/style/coffeescript
# -----------------------------------------------------------------------------

# -----------------------------------------------------------------------------
# INPUT SELECT 2
# -----------------------------------------------------------------------------
#
# Dependencies:
#= require vendor/select2
#
# -----------------------------------------------------------------------------

class @InputSelect2 extends InputSelect
  initialize: ->
    @config.beforeInitialize?(this)

    # https://select2.github.io/options.html
    options = @config.pluginOptions || {}
    @$input.select2(options)

    @config.onInitialize?(this)


chr.formInputs['select2'] = InputSelect2




Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
formagic-0.1.0 app/assets/javascripts/formagic/inputs/select2.coffee
chr-0.3.5 app/assets/javascripts/form/input-select2.coffee