New to Kendo UI for AngularStart a free 30-day trial

WindowSettings

Represents the settings for the Window actions when you open a Window through WindowService. (See example.)

NameTypeDefaultDescription

appendTo?

ViewContainerRef

Defines the container where the Window is inserted. This changes the place in the page hierarchy where the Window appears.

autoFocusedElement?

string

Sets the query selector for the element to focus automatically.

content?

string | Function | TemplateRef<any>

Defines the Window content.

cssClass?

any

Sets custom CSS classes for the Window wrapper element. Accepts any value supported by ngClass.

draggable?

boolean

Specifies is the Window is draggable.

height?

number

Sets the height of the Window in pixels.

htmlAttributes?

{[key: string]: string}

Sets HTML attributes for the Window wrapper element. Accepts string key-value pairs.

keepContent?

boolean

Set to true to persist the Window content in the DOM when minimized.

left?

number

Sets the left offset of the Window in pixels.

messages?

WindowMessages

Sets the text of the labels shown in the Window. Use for localization.

minHeight?

number

Sets the minimum height of the Window in pixels.

minWidth?

number

Sets the minimum width of the Window in pixels.

preventClose?

(ev: any, windowRef?: WindowRef) => boolean

Use the preventClose predicate to check if closing the Window should be prevented. Applies to clicking the Close button, pressing Esc, or calling the close method. Return true to prevent closing. If the Close button or Esc is used, a WindowCloseResult instance is passed.

resizable?

boolean

Specifies if the Window is resizable.

state?

WindowState

Sets the initial state of the Window.

themeColor?

WindowThemeColor

Sets the theme color of the Window.

title?

string

Sets the Window title.

titleBarContent?

TemplateRef<any>

Defines the content of the title bar.

top?

number

Sets the top offset of the Window in pixels.

width?

number

Sets the width of the Window in pixels.

Constructors

WindowSettings

()

In this article
ConstructorsWindowSettings
Not finding the help you need?
Contact Support