Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Docs: $mdToast.simple() methods incomplete #2420

@michaelbromley

Description

@michaelbromley

In the docs for the $mdToast service, the API reference for the $mdToast.simple() method lists a bunch of chainable methods exposed by the return object:

  • content()
  • action()
  • highlightAction()
  • capsule()
  • theme()

However, the example source shows use of additional undocumented methods:

$mdToast.simple()
        .content('Simple Toast!')
        .position($scope.getToastPosition())
        .hideDelay(3000)

In addition there are also the event-handling methods onHide(), onRemove() & onShow() available to chain.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions