1Prima::DetailedOutline(U3s)er Contributed Perl DocumentatPiroinma::DetailedOutline(3)
2
3
4

NAME

6       Prima::DetailedOutline - a multi-column outline viewer with controlling
7       header widget.
8

SYNOPSIS

10         use Prima qw(DetailedOutline Application);
11
12         my $l = Prima::DetailedOutline->new(
13               columns => 2,
14               headers => [ 'Column 1', 'Column 2' ],
15               size    => [200, 100],
16               items => [
17                     [ ['Item 1, Col 1', 'Item 1, Col 2'], [
18                           [ ['Item 1-1, Col 1', 'Item 1-1, Col 2'] ],
19                           [ ['Item 1-2, Col 1', 'Item 1-2, Col 2'], [
20                                 [ ['Item 1-2-1, Col 1', 'Item 1-2-1, Col 2'] ],
21                           ] ],
22                     ] ],
23                     [ ['Item 2, Col 1', 'Item 2, Col 2'], [
24                           [ ['Item 2-1, Col 1', 'Item 2-1, Col 2'] ],
25                     ] ],
26               ],
27         );
28         $l-> sort(1);
29         run Prima;
30
31         my $l = Prima::DetailedOutline->new(
32            style => 'triangle',
33            ...
34         );
35

DESCRIPTION

37       Prima::DetailedOutline combines the functionality of
38       Prima::OutlineViewer and Prima::DetailedList.
39

API

41       This class inherits all the properties, methods, and events of
42       Prima::OutlineViewer (primary ancestor) and Prima::DetailedList
43       (secondary ancestor).  One new property is introduced, and one property
44       is different enough to warrant mention.
45
46   Methods
47       items ARRAY
48           Each item is represented by an arrayref with either one or two
49           elements.  The first element is the item data, an arrayref of text
50           strings to display.  The second element, if present, is an arrayref
51           of child items.
52
53           When using the node functionality inherited from
54           Prima::OutlineViewer, the item data (that is, the arrayref of text
55           strings) is the first element of the node.
56
57       autoRecalc BOOLEAN
58           If this is set to a true value, the column widths will be
59           automatically recalculated (via "autowidths") whenever a node is
60           expanded or collapsed.
61
63       Copyright 2003 Teo Sankaro
64
65       This program is distributed under the BSD License.  (Although a credit
66       would be nice.)
67

AUTHOR

69       Teo Sankaro, <teo_sankaro@hotmail.com>.
70

SEE ALSO

72       Prima, Prima::Outlines, Prima::DetailedList
73
74
75
76perl v5.36.0                      2023-03-20         Prima::DetailedOutline(3)
Impressum