Sha256: 5b3be0adb80b4bfaefd1b696abfb1636afb8f0d896b681226be876ddbb142e19
Contents?: true
Size: 757 Bytes
Versions: 19
Compression:
Stored size: 757 Bytes
Contents
Backbone.Poised.List ||= {} class Backbone.Poised.List.Anchor extends Backbone.Poised.View tagName: 'li' className: 'anchor' events: 'click': 'toggleCollapse' initialize: (options = {}) -> super @name = options.name or 'general' @label = options.label @collapsible = options.collapsible is true @collapsed = options.collapsed isnt false if @collapsible toggleCollapse: => @$el.toggleClass('collapsed') render: -> if @name is 'undefined' defaultLocale = 'other' else defaultLocale = @name.toLabel() @$el.html @loadLocale "listAnchors.#{@name}.label", defaultValue: defaultLocale if @collapsible @$el.addClass('collapsible') @toggleCollapse() if @collapsed this
Version data entries
19 entries across 19 versions & 1 rubygems