Files
openlayers/config/jsdoc/api/template/tmpl/observables.tmpl
2022-08-15 16:14:03 -06:00

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="module-ol_Object.ObjectEvent.html">ObjectEvent</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>