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



261
262
263
# File 'lib/htmlcom.rb', line 261

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

Instance Method Details

#to_cssObject



265
266
267
# File 'lib/htmlcom.rb', line 265

def to_css()
  @jtb.to_css
end

#to_htmlObject



269
270
271
# File 'lib/htmlcom.rb', line 269

def to_html()
  @jtb.to_html
end

#to_jsObject



273
274
275
# File 'lib/htmlcom.rb', line 273

def to_js()
  @jtb.to_js
end

#to_webpageObject



277
278
279
# File 'lib/htmlcom.rb', line 277

def to_webpage()
  @jtb.to_webpage
end