• Getting Started
  • Components
    • Barcodes
    • Buttons
    • Chartsupdated
    • Conversational UIupdated
    • Data Query
    • Date Inputs
    • 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
    • PivotGrid
    • 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

WindowService

A service for opening Windows dynamically (see example).

Constructors

WindowService

(containerService: WindowContainerService)

Parameters

containerService

WindowContainerService

Methods

open

Opens a Window component.

@Component({
  selector: 'my-app',
  template: `
    <button kendoButton (click)="open()">Open window</button>
    <div kendoWindowContainer></div>
  `
})
export class AppComponent {
    constructor( private windowService: WindowService ) {}

    public open() {
        var window = this.windowService.open({
          title: "My window",
          content: "My content!"
        });

        window.result.subscribe((result) => {
          if (result instanceof WindowCloseResult) {
            console.log("Window was closed");
          }
        });
    }
}
Parameters

settings

WindowSettings

The settings that define the Window.

Returns

WindowRef

  • A reference to the Window object.