GitHub

DaffFormFieldComponent

class

import { DaffFormFieldComponent } from '@daffodil/design/form-field'

@Component()
class DaffFormFieldComponent implements AfterContentInit, AfterContentChecked, AfterViewInit {
  elementRef: ElementRef<any>

  @Input() @HostBinding() skeleton: boolean = false
  @Input() appearance: DaffFormFieldApperanace
  @Input() id: string = 'daff-form-field-' + ++daffFormFieldId
}

Inputs

skeleton
boolean
Defaultfalse
Description

Controls whether the component displays a skeleton loading state.

appearance
DaffFormFieldApperanace
Default –
Description

The appearance style of a form field, whether the label is fluid or fixed.

id
string
Default'daff-form-field-' + ++daffFormFieldId
Description

The unique id of the form field. Defaults to an autogenerated value. When using this, it's your responsibility to ensure that the id for each form field is unique.

It gets assigned to the for attribute on the <label> inside of the form field.