class HtmlCom::Menu

Public Class Methods

new(type=:vertical_menu, links, debug: false) click to toggle source

current options :vertical_menu, :fixed_menu, sticky_nav, breadcrumb

# File lib/htmlcom.rb, line 261
def initialize(type=:vertical_menu, links, debug: false)
  @jtb = JsMenuBuilder.new(type, {items: links, debug: debug})
end

Public Instance Methods

to_css() click to toggle source
# File lib/htmlcom.rb, line 265
def to_css()
  @jtb.to_css
end
to_html() click to toggle source
# File lib/htmlcom.rb, line 269
def to_html()
  @jtb.to_html
end
to_js() click to toggle source
# File lib/htmlcom.rb, line 273
def to_js()
  @jtb.to_js
end
to_webpage() click to toggle source
# File lib/htmlcom.rb, line 277
def to_webpage()
  @jtb.to_webpage
end