GitHub

Orientable

Orientable enforces consistent use of orientation across components.

Directives

DaffOrientableDirective

import { DaffOrientableDirective } from '@daffodil/design'

DaffOrientableDirectiveenforces consistent use of orientation across components.

@Directive()
class DaffOrientableDirective implements DaffOrientable, OnChanges, OnInit {
  defaultOrientation: DaffOrientation

  @Input() orientation: DaffOrientation
}

Inputs

orientation
DaffOrientation
Default
Description

The orientation of the component.

Properties

defaultOrientation
DaffOrientation
Default
Description

The default used when no orientation is set.


Types

DaffOrientable

Deprecated

import { DaffOrientable } from '@daffodil/design'

interface DaffOrientable {
  orientation: DaffOrientation
}

DaffOrientation

import { DaffOrientation } from '@daffodil/design'

The possible types that can be passed to a DaffOrientable component

type DaffOrientation = 'horizontal' | 'vertical'

DaffOrientationEnum

import { DaffOrientationEnum } from '@daffodil/design'

This enum will be removed from the public api in v1.0.0.

enum DaffOrientationEnum {
  Horizontal = DaffOrientationEnum.Horizontal,
  Vertical = DaffOrientationEnum.Vertical,
}