Sha256: e4fd37b7380b96a60793227e677ebb06351c7b78a44a7dc37aba097f3da9cb7b

Contents?: true

Size: 584 Bytes

Versions: 11

Compression:

Stored size: 584 Bytes

Contents

class @AntsMenu
  constructor: (title, apiPath) ->
    config =
      title: title

      objectStore: new RailsObjectStore({
        resource: 'menu'
        path: "#{ apiPath }"
      })

      formSchema:
        links:
          type: 'documents'
          newButtonLabel: 'Add a Link'
          sortBy: '_position'
          formSchema:
            title:
              type: 'string'

            url:
              type: 'string'

            target_blank:
              type: 'checkbox'
              default: false
              label: 'Open in a new tab'

    return config

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ants-0.3.5 app/assets/javascripts/ants/menu.coffee
ants-0.3.4 app/assets/javascripts/ants/menu.coffee
ants-0.3.3 app/assets/javascripts/ants/menu.coffee
ants-0.3.2 app/assets/javascripts/ants/menu.coffee
ants-0.3.1 app/assets/javascripts/ants/menu.coffee
ants-0.3.0 app/assets/javascripts/ants/menu.coffee
ants-0.2.8 app/assets/javascripts/ants/menu.coffee
ants-0.2.7 app/assets/javascripts/ants/menu.coffee
ants-0.2.6 app/assets/javascripts/ants/menu.coffee
ants-0.2.5 app/assets/javascripts/ants/menu.coffee
ants-0.2.4 app/assets/javascripts/ants/menu.coffee