UNPKG

@visa/nova-angular

Version:

Visa Product Design System Nova Angular library

49 lines (48 loc) 1.99 kB
/** * Copyright (c) 2025 Visa, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * **/ import { BooleanInput } from '@angular/cdk/coercion'; import { AfterContentInit } from '@angular/core'; import { CheckboxDirective } from '../checkbox/checkbox.directive'; import { RadioDirective } from '../radio/radio.directive'; import * as i0 from "@angular/core"; export declare class ToggleDirective implements AfterContentInit { radio: RadioDirective; checkbox: CheckboxDirective; /** * Sets the `for` attribute to the id of the radio or checkbox. * @default &lt;radio-id&gt; or &lt;checkbox-id&gt; * @builtin true */ for: string; get hostFor(): string; /** * Adds <code>v-toggle-icon</code> class for when toggle has icons only. * @default false */ get toggleIcon(): boolean; set toggleIcon(value: BooleanInput); _toggleIcon: boolean; /** * Provides custom class&#40;es&#41; for custom styling. * @default .v-toggle */ class: string; get hostClasses(): string; ngAfterContentInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ToggleDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ToggleDirective, "[v-toggle]", never, { "for": { "alias": "for"; "required": false; }; "toggleIcon": { "alias": "toggleIcon"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, ["radio", "checkbox"], never, true, never>; }