GitHub

DaffToastPositionService

import { DaffToastPositionService } from '@daffodil/design/toast'

@Injectable()
class DaffToastPositionService {
  config: DaffToastPosition

  setPosition(position: DaffToastPosition): void
}

Properties

config
DaffToastPosition
Default
Description

Reads the current position of the toast. Defaults to bottom center on mobile devices.

() Methods

setPosition
void

Changes the position of the toast.

Parameters
Parameterposition: DaffToastPosition
Description

The position of the toast.