Sha256: e44c044c1d1ec63443825ae27f7aacdbb3d8a21335f6231aba95b79d29a985e3
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
_.def('Luca.containers.Viewport').extend('Luca.containers.CardView').with activeItem: 0 className: 'luca-ui-viewport' fullscreen: true fluid: false wrapperClass: 'row' initialize: (@options={})-> Luca.core.Container::initialize.apply(@, arguments) if Luca.enableBootstrap is true @wrapperClass = "row-fluid" if @fluid is true @$el.wrap("<div class='#{ @wrapperClass }' />").addClass('span12') $('html,body').addClass('luca-ui-fullscreen') if @fullscreen beforeRender: ()-> Luca.containers.CardView::beforeRender?.apply(@, arguments) if Luca.enableBootstrap and @topNav and @fullscreen $('body').css('padding','40px') @renderTopNavigation() if @topNav? @renderBottomNavigation() if @bottomNav? renderTopNavigation: ()-> return unless @topNav? if _.isString( @topNav ) @topNav = Luca.util.lazyComponent(@topNav) if _.isObject( @topNav ) @topNav.ctype ||= @topNav.type || "nav_bar" unless Luca.isBackboneView(@topNav) @topNav = Luca.util.lazyComponent( @topNav ) @topNav.app = @ $('body').prepend( @topNav.render().el ) renderBottomNavigation: ()->
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
luca-0.9.1 | src/containers/viewport.coffee |
luca-0.9.0 | src/containers/viewport.coffee |