Class: HtmlCom::Menu

Inherits:
Object
  • Object
show all
Defined in:
lib/htmlcom.rb

Instance Method Summary collapse

Constructor Details

#initialize(type = :vertical_menu, links, debug: false) ⇒ Menu

current options :vertical_menu, :fixed_menu, sticky_nav, breadcrumb



275
276
277
# File 'lib/htmlcom.rb', line 275

def initialize(type=:vertical_menu, links, debug: false)
  @jtb = JsMenuBuilder.new(type, {items: links, debug: debug})
end

Instance Method Details

#to_cssObject



279
280
281
# File 'lib/htmlcom.rb', line 279

def to_css()
  @jtb.to_css
end

#to_htmlObject



283
284
285
# File 'lib/htmlcom.rb', line 283

def to_html()
  @jtb.to_html
end

#to_jsObject



287
288
289
# File 'lib/htmlcom.rb', line 287

def to_js()
  @jtb.to_js
end

#to_webpageObject



291
292
293
# File 'lib/htmlcom.rb', line 291

def to_webpage()
  @jtb.to_webpage
end