mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(docs-infra): display "developer preview" label on class members (#47814)
This commit adds the "developer preview" label for class properties and methods. PR Close #47814
This commit is contained in:
committed by
Dylan Hunn
parent
38ec1565ad
commit
fc07efdd2b
@@ -89,6 +89,11 @@
|
||||
{%- else %}{$ method.name $}()
|
||||
{%- endif -%}
|
||||
</h3>
|
||||
{%- if method.developerPreview %}
|
||||
<label class="api-status-label dev-preview" title="This API is in Developer Preview">
|
||||
<a href="guide/releases#developer-preview">developer preview</a>
|
||||
</label>
|
||||
{% endif %}
|
||||
{$ github.githubLinks(method, versionInfo) $}
|
||||
</div>
|
||||
</th></tr></thead>
|
||||
@@ -221,6 +226,12 @@
|
||||
<code class="{% if property.deprecated %} deprecated-api-item{% endif %}">{$ renderMemberSyntax(property) $}</code>
|
||||
</td>
|
||||
<td>
|
||||
{%- if property.developerPreview %}
|
||||
<label class="api-status-label dev-preview" title="This API is in Developer Preview">
|
||||
<a href="guide/releases#developer-preview">developer preview</a>
|
||||
</label>
|
||||
{% endif %}
|
||||
|
||||
{%- if (property.isGetAccessor or property.isReadonly) and not property.isSetAccessor %}
|
||||
<span class='read-only-property'>Read-Only</span>{% endif %}
|
||||
|
||||
|
||||
@@ -322,7 +322,7 @@ export class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
||||
private _disableOptimizedSrcset = false;
|
||||
|
||||
/**
|
||||
* Sets the image to "fill mode," which eliminates the height/width requirement and adds
|
||||
* Sets the image to "fill mode", which eliminates the height/width requirement and adds
|
||||
* styles such that the image fills its containing element.
|
||||
*
|
||||
* @developerPreview
|
||||
|
||||
Reference in New Issue
Block a user