Skip to content

Commit

Permalink
add explanation when make sense to use default empty items
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed May 17, 2017
1 parent 1692e86 commit 9a0e7ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/cwm/src/lib/cwm/table.rb
Expand Up @@ -24,6 +24,10 @@ class Table < CustomWidget
# rest is data in table, which can be e.g. terms. Then it have to be enclosed in
# `cell` term.
# @see for more complex example see examples directory
# @note default value is empty array. It is useful when computation expensive content
# need to be set. In such case, it is better to keep empty items to quickly show table and
# then in #init call #change_items method, so it will be filled when all widgets are at place
# and just filling its content.
#
# @example for table with two collumns
# def items
Expand Down

0 comments on commit 9a0e7ce

Please sign in to comment.