/* Copyright © 2016-2019 Lidor Systems. All rights reserved. This file is part of the "IntegralUI Web" Library. The contents of this file are subject to the IntegralUI Web License, and may not be used except in compliance with the License. A copy of the License should have been installed in the product's root installation directory or it can be found at http://www.lidorsystems.com/products/web/studio/license-agreement.aspx. This SOFTWARE is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Any infringement will be prosecuted under applicable laws. */ import { Component, ViewContainerRef, ViewChild, ViewChildren, ViewEncapsulation } from '@angular/core'; import { IntegralUIIncrementMode } from '../../integralui/components/integralui.core'; @Component({ selector: '', template: `
IntegralUI RadioButton is a native Angular component that represents a radio button. It works in relation with IntegralUI RadioGroup for creating different sets of radio buttons. The ngModel directive is supported and both components can be used within Angular Forms.
You can customize the appearance of radio buttons using different images via CSS.
The following properties and events are supported:
In this example, there are three groups of radio buttons, where each group has different style for its buttons. You can change the button appearance via CSS. Whenever button is clicked within a group, the checked property of all buttons in the same group is updated so only one radio button is currently checked. By handling the valueChanged event from the RadioGroup component, you can see which button is currently checked.
For more information check out the source code of this sample (radiobutton/radiobutton-overview.ts) file.