class HtmlGrid::SimpleLabel

Public Instance Methods

init() click to toggle source
Calls superclass method
# File lib/htmlgrid/label.rb, line 32
def init
  super
  @value = @lookandfeel.lookup(@name)
  state = @session.state
  if state.respond_to?(:mandatory?) && state.mandatory?(@name)
    @value += "*"
  end
end
to_html(context) click to toggle source
# File lib/htmlgrid/label.rb, line 41
def to_html(context)
  context.label(@attributes) { @value }
end