 module.exports =
 
 class AccountEditShortcutsRow extends kd.View
+
+  # Class name for columns.
+  COL_CLASS_NAME = 'col'
+
+  # Class name to set for currently recording item.
+  ENABLED_CLASS_NAME = 'enabled'
+
+  # Class name to set for currently recording item.
+  ACTIVE_CLASS_NAME = 'active'
+
+  # Class name to set for duplicate/colliding items.
+  DUP_CLASS_NAME = 'collides'
+
+  # The maximum description string length.
+  DESCRIPTION_TRUNC_LEN = 30
+
+  # The separator pattern to truncate to.
+  DESCRIPTION_TRUNC_SEP = ' '
+
+  CLICK = 'click'
+
+  CLASS_NAME = 'row'
+
+  TOGGLE_PARTIAL = '<div class=toggle><span class=icon>'
 
   constructor: (options, data) ->
 

# Determines the text conversion method to use when displaying bindings.
convertCase = _.capitalize

# Generates a compiled template function.
renderBinding =
  _.template '<% _.forEach(keys, function (key) { %><span><%= key %></span><% }) %>'


  viewAppended: ->

    toggle = new kd.View
      cssClass : COL_CLASS_NAME
      partial  : TOGGLE_PARTIAL

    if @model.enabled then toggle.setClass ENABLED_CLASS_NAME

    descriptionText = _.escape @model.description

    description = new kd.View
      cssClass : COL_CLASS_NAME
      partial  : _.trunc descriptionText, separator: DESCRIPTION_TRUNC_SEP, length: DESCRIPTION_TRUNC_LEN

    if descriptionText.length > DESCRIPTION_TRUNC_LEN
      description.domElement.attr 'title', descriptionText

    binding = new kd.View
      cssClass : COL_CLASS_NAME
      partial  : presentBinding @_binding

    # Handles checkbox clicks.
