Sha256: 00f2dd0590e49e7fa3cefeed0e8161232980aa2f46a91040e6dd4841a47e2377

Contents?: true

Size: 356 Bytes

Versions: 6

Compression:

Stored size: 356 Bytes

Contents

class @AntsSlugInput
  constructor: (label="Slug") ->
    config =
      type: "string"
      name: "_slug"
      label: label
      placeholder: " "
      onInitialize: (input) ->
        if input.object && input.object._slugs.length
          defaultSlug = input.object._slugs[0]
          input.$input.attr "placeholder", defaultSlug

    return config

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ants-0.3.14 app/assets/javascripts/ants/slug.coffee
ants-0.3.13 app/assets/javascripts/ants/slug.coffee
ants-0.3.12 app/assets/javascripts/ants/slug.coffee
ants-0.3.11 app/assets/javascripts/ants/slug.coffee
ants-0.3.10 app/assets/javascripts/ants/slug.coffee
ants-0.3.9 app/assets/javascripts/ants/slug.coffee