Enums have been added to result file

This commit is contained in:
Nadezhda Makarkina 2015-07-10 15:32:25 +03:00 committed by Nadezhda Makarkina
parent 860b551e9b
commit 3dd0b04fb9
4 changed files with 32 additions and 1 deletions

View File

@ -154,6 +154,10 @@
<h3 class="field-label"><a name="{{classname}}">{{classname}}</a> <a class="up" href="#__Models">Up</a></h3>
<div class="field-items">
{{#vars}}<div class="param">{{name}} {{#isNotRequired}}(optional){{/isNotRequired}}</div><div class="param-desc"><span class="param-type">{{datatype}}</span> {{description}}</div>
{{#isEnum}}
<div class="param-enum-header">Enum:</div>
{{#_enum}}<div class="param-enum">{{this}}</div>{{/_enum}}
{{/isEnum}}
{{/vars}}
</div> <!-- field-items -->
</div>

View File

@ -124,6 +124,20 @@ code {
font-style: italic;
}
.param-enum-header {
width: 700px;
padding: 0 0 0 60px;
color: #777;
font-weight: bold;
}
.param-enum {
width: 700px;
padding: 0 0 0 80px;
color: #777;
font-style: italic;
}
.field-label {
padding: 0;
margin: 0;

View File

@ -100,6 +100,10 @@
float: left;
}
.param-enum {
margin-left: 20px;
}
.section-header {
border-bottom: 2px;
font-weight: bold;

View File

@ -5,7 +5,16 @@
{{#vars}}
<ul class="parameter">
<li class="param-required-{{required}}">{{name}} : {{datatype}}
<br/>{{description}}
<br/>{{description}}
{{#isEnum}}
<dl class="param-enum">
<dt>Enum:
{{#_enum}}
<dd>{{this}}</dd>
{{/_enum}}
</dt>
</dl>
{{/isEnum}}
</li>
</ul>
{{/vars}}