Skip to content

Commit

Permalink
changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed May 16, 2017
1 parent 86e2976 commit 5a76422
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions library/cwm/src/lib/cwm/table.rb
Expand Up @@ -7,7 +7,8 @@ class Table < CustomWidget
# @method header
# return array of String or Yast::Term which is used as headers for table
# it can use e.g. align Left/Center/Right
# @note have to be overwritten
# @note It has to be overwritten
# @return [Array<String|Yast::Term>]
#
# @example of header
# def header
Expand Down Expand Up @@ -36,7 +37,7 @@ def items
end

# change list on fly with argument. Useful when content of widget is changed.
# @arg items_list [Array<Array<Object>>] same format as {#items}
# @param items_list [Array<Array<Object>>] same format as {#items}
def change_items(items_list)
Yast::UI.ChangeWidget(Id(widget_id), :Items, format_items(items_list))
end
Expand All @@ -55,17 +56,16 @@ def value=(id)
Yast::UI.ChangeWidget(Id(widget_id), :SelectedItems, Array[id])
end


protected

# helper to create icon term
# @arg path [String] path to icon
# @param path [String] path to icon
def icon(path)
Yast::Term.new(:icon, path)
end

# helper to create icon term
# @arg args content of cell, often used to combine icon and string
# @param args content of cell, often used to combine icon and string
#
# @example
# cell(icon("/tmp/cool_icon.png"), "Really cool!!!")
Expand All @@ -77,7 +77,7 @@ def cell(*args)
def multiselection?
return false unless respond_to?(:opt, true)

return opt.include?(:multiSelection)
opt.include?(:multiSelection)
end

private
Expand Down

0 comments on commit 5a76422

Please sign in to comment.