File

projects/ui-kit-lib/src/lib/v2/bottom-sheet/bottom-sheet.ts

Description

Service to trigger MD bottom sheets.

Index

Methods
Accessors

Methods

dismiss
dismiss(result?: R)
Type parameters :
  • R

Dismisses the currently-visible bottom sheet.

Parameters :
Name Type Optional Description
result R Yes

Data to pass to the bottom sheet instance.

Returns : void
open
open(component: ComponentType<T>, config?: MDBottomSheetConfig<D>)
Type parameters :
  • T
  • D
  • R

Opens a bottom sheet containing the given component.

Parameters :
Name Type Optional Description
component ComponentType<T> No

Type of the component to load into the bottom sheet.

config MDBottomSheetConfig<D> Yes

Extra configuration options.

Reference to the newly-opened bottom sheet.

open
open(template: TemplateRef, config?: MDBottomSheetConfig<D>)
Type parameters :
  • T
  • D
  • R

Opens a bottom sheet containing the given template.

Parameters :
Name Type Optional Description
template TemplateRef<T> No

TemplateRef to instantiate as the bottom sheet content.

config MDBottomSheetConfig<D> Yes

Extra configuration options.

Reference to the newly-opened bottom sheet.

open
open(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: MDBottomSheetConfig<D>)
Type parameters :
  • T
  • D
  • R
Parameters :
Name Type Optional
componentOrTemplateRef ComponentType<T> | TemplateRef<T> No
config MDBottomSheetConfig<D> Yes

Accessors

_openedBottomSheetRef
get_openedBottomSheetRef()

Reference to the currently opened bottom sheet.

set_openedBottomSheetRef(value: MDBottomSheetRef<any> | null)
Parameters :
Name Type Optional
value MDBottomSheetRef<any> | null No
Returns : void

results matching ""

    No results matching ""