Sha256: a9fac6fda54cf6a1da7a47b228e2f2182ba5d544f68544a43e29c791df53ce2a
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
navBar = Luca.register "Luca.components.NavBar" navBar.extends "Luca.View" navBar.defines fixed: true position: 'top' className: 'navbar' brand: "Luca.js" bodyTemplate: 'nav_bar' bodyClassName: 'luca-ui-navbar-body' beforeRender: ()-> @$el.addClass "navbar-fixed-#{ @position }" if @fixed if @brand? @content().append("<a class='brand' href='#'>#{ @brand }</a>") if @template @content().append Luca.template(@template, @) render: ()-> @ content: ()-> @$('.container').eq(0)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
luca-0.9.8 | app/assets/javascripts/luca/components/nav_bar.coffee |