5 lines
5.6 KiB
JSON
5 lines
5.6 KiB
JSON
{
|
|
"id": "api/forms/RangeValueAccessor",
|
|
"title": "RangeValueAccessor",
|
|
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/forms\", \"name\": \"@angular/forms\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/forms/RangeValueAccessor\", \"name\": \"RangeValueAccessor\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/forms\">@angular/forms</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/forms/src/directives/range_value_accessor.ts?message=docs(forms)%3A%20describe%20your%20change...#L18-L105\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/forms/src/directives/range_value_accessor.ts#L18-L105\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"rangevalueaccessor\">RangeValueAccessor<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/forms/RangeValueAccessor#rangevalueaccessor\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label directive\">directive</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n <p>The <code><a href=\"api/forms/ControlValueAccessor\" class=\"code-anchor\">ControlValueAccessor</a></code> for writing a range value and listening to range input changes.\nThe value accessor is used by the <code><a href=\"api/forms/FormControlDirective\" class=\"code-anchor\">FormControlDirective</a></code>, <code><a href=\"api/forms/FormControlName\" class=\"code-anchor\">FormControlName</a></code>, and <code><a href=\"api/forms/NgModel\" class=\"code-anchor\">NgModel</a></code>\ndirectives.</p>\n\n \n </section>\n \n \n \n \n\n <h2 id=\"ngmodules\">NgModules<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/forms/RangeValueAccessor#ngmodules\"><i class=\"material-icons\">link</i></a></h2>\n<ul class=\"ngmodule-list\">\n\n <li>\n <a href=\"api/forms/ReactiveFormsModule\">\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box\">ReactiveFormsModule</code-example>\n </a>\n </li>\n \n <li>\n <a href=\"api/forms/FormsModule\">\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box\">FormsModule</code-example>\n </a>\n </li>\n \n</ul>\n\n\n \n<section class=\"selector-list\">\n <h2 id=\"selectors\">Selectors<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/forms/RangeValueAccessor#selectors\"><i class=\"material-icons\">link</i></a></h2>\n \n <ul>\n <li><code>input[type=range][<a href=\"api/forms/FormControlName\" class=\"code-anchor\">formControlName</a>]</code></li>\n \n <li><code>input[type=range][formControl]</code></li>\n \n <li><code>input[type=range][<a href=\"api/forms/NgModel\" class=\"code-anchor\">ngModel</a>]</code></li>\n \n </ul>\n \n</section>\n\n\n\n \n\n\n\n\n\n \n\n\n \n <section class=\"description\">\n <h2 id=\"description\">Description<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/forms/RangeValueAccessor#description\"><i class=\"material-icons\">link</i></a></h2>\n \n <h3 id=\"using-a-range-input-with-a-reactive-form\">Using a range input with a reactive form<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/forms/RangeValueAccessor#using-a-range-input-with-a-reactive-form\"><i class=\"material-icons\">link</i></a></h3>\n<p>The following example shows how to use a range input with a reactive form.</p>\n<code-example language=\"ts\">\nconst ageControl = new <a href=\"api/forms/FormControl\" class=\"code-anchor\">FormControl</a>();\n</code-example>\n<code-example>\n<input type=\"range\" [formControl]=\"ageControl\">\n</code-example>\n\n </section>\n \n\n \n\n \n\n \n\n \n \n \n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/forms\n - api/forms/ControlValueAccessor\n - api/forms/FormsModule\n - api/forms/ReactiveFormsModule\n-->\n<!-- links from this doc:\n - /api\n - api/forms\n - api/forms/ControlValueAccessor\n - api/forms/FormControl\n - api/forms/FormControlDirective\n - api/forms/FormControlName\n - api/forms/FormsModule\n - api/forms/NgModel\n - api/forms/RangeValueAccessor#description\n - api/forms/RangeValueAccessor#ngmodules\n - api/forms/RangeValueAccessor#rangevalueaccessor\n - api/forms/RangeValueAccessor#selectors\n - api/forms/RangeValueAccessor#using-a-range-input-with-a-reactive-form\n - api/forms/ReactiveFormsModule\n - https://github.com/angular/angular/edit/master/packages/forms/src/directives/range_value_accessor.ts?message=docs(forms)%3A%20describe%20your%20change...#L18-L105\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/forms/src/directives/range_value_accessor.ts#L18-L105\n-->"
|
|
} |