libs/design/callout/examples/src/callout-text-alignment/callout-text-alignment.component.ts
import { NgFor } from '@angular/common';
import {
ChangeDetectionStrategy,
Component,
} from '@angular/core';
import {
UntypedFormControl,
ReactiveFormsModule,
} from '@angular/forms';
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
import { faMobile } from '@fortawesome/free-solid-svg-icons';
import { DAFF_BUTTON_COMPONENTS } from '@daffodil/design/button';
import { DAFF_CALLOUT_COMPONENTS } from '@daffodil/design/callout';
import { DAFF_CONTAINER_COMPONENTS } from '@daffodil/design/container';
@Component({
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'callout-text-alignment',
templateUrl: './callout-text-alignment.component.html',
styleUrls: ['./callout-text-alignment.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [
DAFF_CALLOUT_COMPONENTS,
DAFF_CONTAINER_COMPONENTS,
FaIconComponent,
DAFF_BUTTON_COMPONENTS,
ReactiveFormsModule,
NgFor,
],
})
export class CalloutTextAlignmentComponent {
faMobile = faMobile;
textAlignControl: UntypedFormControl = new UntypedFormControl('');
options = [
{ value: '', label: 'Default' },
{ value: 'left', label: 'Left' },
{ value: 'center', label: 'Center' },
{ value: 'right', label: 'Right' },
];
}