Sha256: 121283521adf1da3419dec0e6e522440bef0c31f1accaef09b7854b919e81d04

Contents?: true

Size: 792 Bytes

Versions: 9

Compression:

Stored size: 792 Bytes

Contents

class App.Materialize
  constructor: (@el) ->
    # initialize some stuff

  prepare: ->

    try
      #
      # Initialize the 'hamburger'
      #
      $(".button-collapse").sideNav();

      #
      # Initialize collapsible (uncomment the line below if you use the dropdown variation)
      #
      $('.collapsible').collapsible
        accordion : true                  # A setting that changes the collapsible behavior to expandable instead of the default accordion style

      #
      # make drop-downs react nicely
      #
      $(".dropdown-button").dropdown()

      #
      # prepare for tabbed display of tabbed UL's
      #
      $('ul.tabs').tabs()
      $('.materialboxed').materialbox()

    catch error
      alert 'App.Materialize did not prepare!'
      console.log error

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
abstracted-0.3.3 app/assets/javascripts/abstracted/app.materialize.coffee
abstracted-0.3.2 app/assets/javascripts/abstracted/app.materialize.coffee
abstracted-0.3.1 app/assets/javascripts/abstracted/app.materialize.coffee
abstracted-0.3.0 app/assets/javascripts/abstracted/app.materialize.coffee
abstracted-0.2.9 app/assets/javascripts/abstracted/app.materialize.coffee
abstracted-0.2.8 app/assets/javascripts/abstracted/app.materialize.coffee
abstracted-0.2.7 app/assets/javascripts/abstracted/app.materialize.coffee
abstracted-0.2.6 app/assets/javascripts/abstracted/app.materialize.coffee
abstracted-0.2.5 app/assets/javascripts/abstracted/app.materialize.coffee