class HDBActionButtons

Public Class Methods

new(sourceView: nil, buttons: [], **args) click to toggle source
Calls superclass method HDivTag::new
# File lib/hwidgets/hdbactionbuttons.rb, line 3
def initialize(sourceView: nil, buttons: [], **args)

  @sourceView = sourceView
  @buttons = buttons

  return super(class: 'hdbactionbuttons', **args)
end

Public Instance Methods

html() click to toggle source
Calls superclass method HWidget#html
# File lib/hwidgets/hdbactionbuttons.rb, line 12
def html
 
  @buttons.each do |button|
    action = button.delete(:action)
    button = HWidget.new("button", button.delete(:name), class: "actionbutton", **button) 
    button.connect(:onclick, @sourceView, "rpcAction", args: {action: action}, 
                 id: @sourceView.oid, mode: 'none',
                 attributes: ":hdbTableView.ids(obj) => ids")
    self << button
  end
  
  return super
end