build(aio): indicate whether properties are read-only in API pages (#22584)

PR Close #22584
This commit is contained in:
Pete Bacon Darwin 2018-03-04 21:11:54 +00:00 committed by Alex Eagle
parent 5bb9f64218
commit 58932c7f38
2 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,7 @@
background-color: rgba(241, 241, 241, 0.2);
}
.from-constructor {
.from-constructor, .read-only-property {
font-style: italic;
color: $blue;
}

View File

@ -134,6 +134,7 @@
<td><a id="{$ property.anchor $}"></a>{$ property.name $}</td>
<td><label class="property-type-label"><code>{$ property.type | escape $}</code></label></td>
<td>
{%- if (property.isGetAccessor or property.isReadonly) and not property.isSetAccessor %}<span class='read-only-property'>Read-only.</span>{% endif %}
{$ (property.description or property.constructorParamDoc.description) | marked $}
{% if property.constructorParamDoc %} <span class='from-constructor'>Declared in constructor.</span>{% endif %}
</td>