• Getting Started
  • Components
    • Barcodes
    • Buttons
    • Chartsupdated
    • Conversational UIupdated
    • Data Query
    • Date Inputsupdated
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Filter
    • Gantt
    • Gauges
    • Gridupdated
    • Icons
    • Indicators
    • Inputsupdated
    • Labels
    • Layout
    • ListBox
    • ListView
    • Map
    • Menus
    • Navigation
    • Notification
    • Pager
    • PDF Export
    • PDFViewer
    • PivotGridupdated
    • Popup
    • ProgressBars
    • Ripple
    • Schedulerupdated
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • ToolBar
    • Tooltips
    • TreeList
    • TreeView
    • Typography
    • Uploads
    • Utilities
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Sample Applications
  • FAQ
  • Troubleshooting
  • Updates
  • Changelogs
New to Kendo UI for Angular? Start a free 30-day trial

DialogRef

Holds references to the object instance and published events of the Dialog. Controls the Dialogs that were opened through the DialogService (see example).

NameTypeDefaultDescription

close

Function

Allows you to close the Dialog through code. When called with no arguments, the result Observable will be of type DialogCloseResult. When called with an argument, the result Observable will hold the provided value.

content

ComponentRef<any>

A reference to the child component of the Dialog. Available when the Dialog is opened with component content.

dialog

ComponentRef<DialogComponent>

A reference to the Dialog instance.

result

Observable<DialogResult>

Emits events when the Dialog is closed either through the Close button of the title bar or through the action buttons. If the Close button of the title bar is clicked, DialogResult is a DialogCloseResult instance. If the Dialog is closed through the action buttons, DialogResult contains the object that was passed when the Dialog was opened. When close is called with an argument, the result is the passed argument.

Constructors

DialogRef

()

In this article

Not finding the help you need?