view · edit · sidebar · attach · print · history

HtmlGrid

CSS_HEAD_MAP

  • @grid.add_style() in compose_* method [priority 3]
    • DEFAULT_HEAD_CLASS [priority 2]
      • CSS_HEAD_MAP [priority 1]

HtmlGrid::Div

HtmlGrid::Div < HtmlGrid::Component

HtmlGrid::Componet
  • CSS_CLASS
  • CSS_ID

@value is nil (ininialize)
before to_html are called, set Array or String

z.B.

Link
    link = HtmlGrid::Link.new(:search, model, session, self)
    args = { :param => "test" }
    link.href  = @lookandfeel._event_url(:home, args)
    link.value = "test"
    link
Button
    button = HtmlGrid::Button.new(:search, model, @session, self)
    args = { :param => "normal" }
    url  = @lookandfeel._event_url(:home, args)
    button.set_attribute("onclick", "document.location.href='#{url}'")
    button.set_attribute("value", "test")
    button
view · edit · sidebar · attach · print · history
Page last modified on March 28, 2012, at 05:17 PM