Revision 91aa8ecb
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
SL/Layout/MenuLeft.pm | ||
---|---|---|
107 | 107 |
} |
108 | 108 |
|
109 | 109 |
1; |
110 |
|
|
111 |
__END__ |
|
112 |
|
|
113 |
=encoding utf-8 |
|
114 |
|
|
115 |
=head1 NAME |
|
116 |
|
|
117 |
SL::Layout::MenuLeft - ex html meanu, now only left menu |
|
118 |
|
|
119 |
=head1 DOM MODEL |
|
120 |
|
|
121 |
Data will be embedded into the page as a json array of entries. |
|
122 |
Each entry is another array with the following fields: |
|
123 |
|
|
124 |
0: title |
|
125 |
1: indentation classes |
|
126 |
2: unique id |
|
127 |
3: icon classes |
|
128 |
4: role classes |
|
129 |
|
|
130 |
From each entry the following dom will be generated, with [0] being entry 0 of |
|
131 |
the data array: |
|
132 |
|
|
133 |
<div id="mi[2]" class="mi [4] [1]"> |
|
134 |
<a class="ml"> |
|
135 |
<span class="mii ms"> |
|
136 |
<div class="[3]"></div> |
|
137 |
</span> |
|
138 |
<span class="mic">[0]</span> |
|
139 |
</a> |
|
140 |
</div> |
|
141 |
|
|
142 |
The classes are minified to keep the json somewhat in check, their meaning is as follows: |
|
143 |
|
|
144 |
=over 4 |
|
145 |
|
|
146 |
=item Indentation Classes |
|
147 |
|
|
148 |
s0: No indentation |
|
149 |
s1: One level of indentation |
|
150 |
s2: Two levels of indentation |
|
151 |
|
|
152 |
=item Icon Classes |
|
153 |
|
|
154 |
Each icon consists of two classes, one for the icon, and one for the size. |
|
155 |
The icon classes are taken from the file names, for example C<Master-Data> is |
|
156 |
the icon for master data, and refers to Master-Icon.png. |
|
157 |
|
|
158 |
icon16: 16x16 icon |
|
159 |
icon24: 24x24 icon |
|
160 |
icon32: 32x32 icon |
|
161 |
|
|
162 |
=item Role Classes |
|
163 |
|
|
164 |
Role classes may be used to style types of links differently. Currently used: |
|
165 |
|
|
166 |
ml: menu link, any <a> tag will have this |
|
167 |
mi: menu item, the enclosing div for each entry has this |
|
168 |
mii: menu item icon, the enclosing div for the icons has this |
|
169 |
ms: menu spacer, the first <span> in the link will have this |
|
170 |
m: menu, only top level entries have this |
|
171 |
i: item, only leaf entries have this |
|
172 |
sm: sub menu, eveything that is not top nor leaf has this |
|
173 |
mic: menu item content, the span with the human readable description has this |
|
174 |
|
|
175 |
=back |
|
176 |
|
|
177 |
=head1 BUGS |
|
178 |
|
|
179 |
none yet |
|
180 |
|
|
181 |
=head1 AUTHOR |
|
182 |
|
|
183 |
Sven Schoeling E<lt>s.schoeling@linet-services.deE<gt> |
|
184 |
|
|
185 |
=cut |
Auch abrufbar als: Unified diff
Dokumentation zum DOM Model von LeftMenu