Components
    • Barcodes
    • Buttons
    • Charts
    • Conversational UIupdated
    • Data Query
    • Date Inputs
    • Date Math
    • Dialogsupdated
    • Drawing
    • Dropdowns
    • Editorupdated
    • Excel Export
    • File Saver
    • Filterupdated
    • Gantt
    • Gauges
    • Gridupdated
    • Icons
    • Indicators
    • Inputs
    • Labels
    • Layoutupdated
    • ListBoxnew
    • ListView
    • Mapbeta
    • Menus
    • Navigation
    • Notification
    • Pager
    • PDF Export
    • PivotGridbeta
    • Popup
    • ProgressBarsupdated
    • Ripple
    • Schedulerupdated
    • ScrollView
    • Sortable
    • ToolBar
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Typography
    • Uploads
    Styling & Themes
    Common Features
    Project Setup
    Troubleshooting
New to Kendo UI for Angular? Start a free 30-day trial

WindowService

A service for opening Windows dynamically (see example).

Constructors

WindowService

(resolver: ComponentFactoryResolver, containerService: WindowContainerService)

Parameters

resolver

ComponentFactoryResolver

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.