Merge pull request #10205 from tschaub/inline-default
Add the default to the type column
This commit is contained in:
@@ -16,9 +16,8 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/* determine if we need extra columns, "attributes" and "default" */
|
/* determine if we need extra "attributes" column */
|
||||||
params.hasAttributes = false;
|
params.hasAttributes = false;
|
||||||
params.hasDefault = false;
|
|
||||||
params.hasName = false;
|
params.hasName = false;
|
||||||
|
|
||||||
var colspan = 2;
|
var colspan = 2;
|
||||||
@@ -40,10 +39,6 @@
|
|||||||
params.hasName = true;
|
params.hasName = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof param.defaultvalue !== 'undefined') {
|
|
||||||
++colspan;
|
|
||||||
params.hasDefault = true;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -56,10 +51,6 @@
|
|||||||
|
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
|
|
||||||
<?js if (params.hasDefault) {?>
|
|
||||||
<th>Default</th>
|
|
||||||
<?js } ?>
|
|
||||||
|
|
||||||
<th class="last">Description</th>
|
<th class="last">Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -80,16 +71,12 @@
|
|||||||
<td class="type">
|
<td class="type">
|
||||||
<?js if (param.type && param.type.names) {?>
|
<?js if (param.type && param.type.names) {?>
|
||||||
<?js= self.partial('type.tmpl', param.type.names) ?>
|
<?js= self.partial('type.tmpl', param.type.names) ?>
|
||||||
|
<?js if (typeof param.defaultvalue !== 'undefined') { ?>
|
||||||
|
(defaults to <?js= self.htmlsafe(param.defaultvalue) ?>)
|
||||||
|
<?js } ?>
|
||||||
<?js } ?>
|
<?js } ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<?js if (params.hasDefault) {?>
|
|
||||||
<td class="default">
|
|
||||||
<?js if (typeof param.defaultvalue !== 'undefined') { ?>
|
|
||||||
<?js= self.htmlsafe(param.defaultvalue) ?>
|
|
||||||
<?js } ?>
|
|
||||||
</td>
|
|
||||||
<?js } ?>
|
|
||||||
<?js } ?>
|
<?js } ?>
|
||||||
|
|
||||||
<td<?js= (param.subparams ? ' colspan=' + colspan : ' ') ?> class="description last">
|
<td<?js= (param.subparams ? ' colspan=' + colspan : ' ') ?> class="description last">
|
||||||
|
|||||||
Reference in New Issue
Block a user