Orientable enforces consistent use of orientation across components.
import { DaffOrientableDirective } from '@daffodil/design'
DaffOrientableDirectiveenforces consistent use of orientation across components.
@Directive()
class DaffOrientableDirective implements DaffOrientable, OnChanges, OnInit {
defaultOrientation: DaffOrientation
@Input() orientation: DaffOrientation
}
DaffOrientation| Default | – |
|---|---|
| Description | The orientation of the component. |
DaffOrientation| Default | – |
|---|---|
| Description | The default used when no orientation is set. |
import { DaffOrientable } from '@daffodil/design'
interface DaffOrientable {
orientation: DaffOrientation
}
import { DaffOrientation } from '@daffodil/design'
The possible types that can be passed to a DaffOrientable component
type DaffOrientation = 'horizontal' | 'vertical'
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,
}