40 lines
1.0 KiB
Cheetah
40 lines
1.0 KiB
Cheetah
<?js
|
|
var props = obj;
|
|
?>
|
|
|
|
<table class="props">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Type</th>
|
|
<th>Settable</th>
|
|
<th><a href="ol.Object.Event.html">ol.Object.Event</a> type</th>
|
|
<th class="last">Description</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?js
|
|
var self = this;
|
|
var propsByName = {};
|
|
props.forEach(function(prop) {
|
|
if (!prop || propsByName[prop.name]) { return; }
|
|
propsByName[prop.name] = prop;
|
|
var setter = prop.readonly ? 'no' : 'yes';
|
|
?>
|
|
|
|
<tr class="<?js= (prop.stability && prop.stability !== 'stable') ? 'unstable' : '' ?>">
|
|
<td class="name"><code><?js= prop.name ?></code></td>
|
|
<td class="type">
|
|
<?js if (prop.type && prop.type.names) {?>
|
|
<?js= self.partial('type.tmpl', prop.type.names) ?>
|
|
<?js } ?>
|
|
</td>
|
|
<td class="setter"><?js= setter ?></td>
|
|
<td class="event"><code>change:<?js= prop.name.toLowerCase() ?></code></td>
|
|
<td class="description last"><?js= prop.description ?></td>
|
|
</tr>
|
|
<?js }); ?>
|
|
</tbody>
|
|
</table>
|