-
Notifications
You must be signed in to change notification settings - Fork 330
show_ui types
There are different show_ui types in ActiveScaffold, some may be useful for some column types only. The show ui types may use options from column’s options hash (conf.columns[:xxx].options = {...}), or an options hash set next to the type (conf.columns[:xxx].show_ui = :yyy, {...}).
Only for associations, to display show columns of the associated records, instead of a list of labels for the associated record (with to_label or method set in :label_method
option), the columns are displayed horizontally, as a table.
It's used automatically in text type columns, display the whole value without truncating, using simple_format method from rails, :html_options
key from show_ui_options, or Column#options hash, are passed as html_options argument, and the other options are passed as options argument to simple_format too.
Only for associations, to display show columns of the associated records, instead of a list of labels for the associated record (with to_label or method set in :label_method
option), the columns are displayed vertically.