Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue #1210 in material.angular.io https://github.com/angular/ma… #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion docs-content/guides/creating-a-custom-form-field-control.html
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,25 @@ <h4 id="controltype" class="docs-header-link">
class <code>mat-form-field-type-example-tel-input</code>.</p>
<pre><code class="language-ts">controlType = <span class="hljs-string">&#x27;example-tel-input&#x27;</span>;
</code></pre>

<h4 id="autofilled" class="docs-header-link">
<span header-link="autofilled"></span>
<code>autofilled</code>
</h4>
<p>This property allows us to specify Whether the input is currently in an autofilled state.
If set true it will add <code>mat-form-field-autofilled</code> class to the <code>&lt;mat-form-field&gt;</code>,
If property is not present on the control it is assumed to be false.
<pre><code class="language-ts">autofilled = <span class="hljs-string">true | false</span>;
</code></pre>

<h4 id="userAriaDescribedBy" class="docs-header-link">
<span header-link="userAriaDescribedBy"></span>
<code>userAriaDescribedBy</code>
</h4>
<p>This property allows us to specify the Value
of <code>aria-describedby</code> that should be merged with the described-by ids which are set by the form-field.
<pre><code class="language-ts">userAriaDescribedBy = <span class="hljs-string">&#x27;id&#x27 | &#x27space-separated list of element ids&#x27;</span>;
</code></pre>

<h4 id="setdescribedbyidsids-string" class="docs-header-link">
<span header-link="setdescribedbyidsids-string"></span>
<code>setDescribedByIds(ids: string[])</code>
Expand Down