Skip to main content Skip to footer

How to Change the Designer Component Warning Dialogue Title

You can alter the title that appears in the header above warning dialogues issued by the Designer Component. For example, this warning will display by default if you attempt to import a password-protected Excel file:

The default header text is "SpreadJS Designer". We can change this using the getResources and setResources methods. Using the below code we can change the header text to something else, such as "Warrning".

let res = GC.Spread.Sheets.Designer.getResources();
res.title ="Warning";
GC.Spread.Sheets.Designer.setResources(res);

Now, the dialogue will display the custom title text:

Tye Glenz