|
|
@@ -40,26 +40,6 @@
|
|
|
?>
|
|
|
|
|
|
<table class="props">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <?js if (props.hasName) {?>
|
|
|
- <th>Name</th>
|
|
|
- <?js } ?>
|
|
|
-
|
|
|
- <th>Type</th>
|
|
|
-
|
|
|
- <?js if (props.hasAttributes) {?>
|
|
|
- <th>Attributes</th>
|
|
|
- <?js } ?>
|
|
|
-
|
|
|
- <?js if (props.hasDefault) {?>
|
|
|
- <th>Default</th>
|
|
|
- <?js } ?>
|
|
|
-
|
|
|
- <th class="last">Description</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
-
|
|
|
<tbody>
|
|
|
<?js
|
|
|
var self = this;
|
|
|
@@ -69,38 +49,30 @@
|
|
|
|
|
|
<tr>
|
|
|
<?js if (props.hasName) {?>
|
|
|
- <td class="name"><code><?js= prop.name ?></code></td>
|
|
|
- <?js } ?>
|
|
|
-
|
|
|
- <td class="type">
|
|
|
- <?js if (prop.type && prop.type.names) {?>
|
|
|
- <?js= self.partial('type.tmpl', prop.type.names) ?>
|
|
|
- <?js } ?>
|
|
|
- </td>
|
|
|
+ <td class="name">
|
|
|
+ <strong><?js= prop.name ?></strong>
|
|
|
|
|
|
- <?js if (props.hasAttributes) {?>
|
|
|
- <td class="attributes">
|
|
|
- <?js if (prop.optional) { ?>
|
|
|
- <optional><br>
|
|
|
- <?js } ?>
|
|
|
+ <?js if (prop.type && prop.type.names) {?>
|
|
|
+ <br><?js= self.partial('type.tmpl', prop.type.names) ?>
|
|
|
+ <?js } ?>
|
|
|
|
|
|
- <?js if (prop.nullable) { ?>
|
|
|
- <nullable><br>
|
|
|
- <?js } ?>
|
|
|
</td>
|
|
|
<?js } ?>
|
|
|
|
|
|
- <?js if (props.hasDefault) {?>
|
|
|
- <td class="default">
|
|
|
- <?js if (typeof prop.defaultvalue !== 'undefined') { ?>
|
|
|
- <?js= self.htmlsafe(prop.defaultvalue) ?>
|
|
|
+ <td class="description last">
|
|
|
+ <?js= prop.description ?>
|
|
|
+
|
|
|
+ <?js if (props.hasDefault) {?>
|
|
|
+ <?js if (typeof prop.defaultvalue !== 'undefined') { ?>
|
|
|
+ <p>Default is <code><?js= self.htmlsafe(prop.defaultvalue) ?></code>.</p>
|
|
|
+ <?js } ?>
|
|
|
<?js } ?>
|
|
|
- </td>
|
|
|
- <?js } ?>
|
|
|
|
|
|
- <td class="description last"><?js= prop.description ?><?js if (prop.subprops) { ?>
|
|
|
- <h6>Properties</h6><?js= self.partial('properties.tmpl', prop) ?>
|
|
|
- <?js } ?></td>
|
|
|
+ <?js if (prop.subprops) { ?>
|
|
|
+ <h6>Properties</h6>
|
|
|
+ <?js= self.partial('properties.tmpl', prop) ?>
|
|
|
+ <?js } ?>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
|
|
|
<?js }); ?>
|