Column.Of_fieldThis module is used for constructing lists of 'a ts from a record's fields. The intention is to use Fields.to_list to obtain a list.
val field :
?align:Column.Align.t ->
?min_width:int ->
?max_width:int ->
?show:[ `Yes | `No | `If_not_empty ] ->
?header:string ->
('field -> string) ->
('record, 'field) Core.Field.t ->
'record Column.tCreate a column based on a field of a record.
val field_attr :
?align:Column.Align.t ->
?min_width:int ->
?max_width:int ->
?show:[ `Yes | `No | `If_not_empty ] ->
?header:string ->
('field -> Ansi_kernel.Attr.t list * string) ->
('record, 'field) Core.Field.t ->
'record Column.tfield_attr is to field as create_attr is to create.
val field_opt :
?align:Column.Align.t ->
?min_width:int ->
?max_width:int ->
?show:[ `Yes | `No | `If_not_empty ] ->
?header:string ->
('field -> string) ->
('record, 'field option) Core.Field.t ->
'record Column.tLike field, but defaults to "" if None
val field_opt_attr :
?align:Column.Align.t ->
?min_width:int ->
?max_width:int ->
?show:[ `Yes | `No | `If_not_empty ] ->
?header:string ->
('field -> Ansi_kernel.Attr.t list * string) ->
('record, 'field option) Core.Field.t ->
'record Column.tLike field_attr, but defaults to ([], "") if None