build(aio): indicate whether properties are read-only in API pages (#22584)
PR Close #22584
This commit is contained in:
parent
5bb9f64218
commit
58932c7f38
@ -81,7 +81,7 @@
|
|||||||
background-color: rgba(241, 241, 241, 0.2);
|
background-color: rgba(241, 241, 241, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.from-constructor {
|
.from-constructor, .read-only-property {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
color: $blue;
|
color: $blue;
|
||||||
}
|
}
|
||||||
|
@ -134,6 +134,7 @@
|
|||||||
<td><a id="{$ property.anchor $}"></a>{$ property.name $}</td>
|
<td><a id="{$ property.anchor $}"></a>{$ property.name $}</td>
|
||||||
<td><label class="property-type-label"><code>{$ property.type | escape $}</code></label></td>
|
<td><label class="property-type-label"><code>{$ property.type | escape $}</code></label></td>
|
||||||
<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 $}
|
{$ (property.description or property.constructorParamDoc.description) | marked $}
|
||||||
{% if property.constructorParamDoc %} <span class='from-constructor'>Declared in constructor.</span>{% endif %}
|
{% if property.constructorParamDoc %} <span class='from-constructor'>Declared in constructor.</span>{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user