santitize, popup class
This commit is contained in:
@@ -13,6 +13,7 @@ export const isOpenPopupEvent = new tg.IsInterface()
|
||||
targetObject: tg.isString,
|
||||
message: tg.isString,
|
||||
buttons: tg.isArray(isButtonDescriptor),
|
||||
popupClass : tg.isString,
|
||||
input: tg.isBoolean
|
||||
}).get();
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ export class WorkAdventureUiCommands extends IframeApiContribution<WorkAdventure
|
||||
}),
|
||||
];
|
||||
|
||||
openPopup(targetObject: string, message: string, buttons: ButtonDescriptor[], input: boolean = false): Popup {
|
||||
openPopup(targetObject: string, message: string, buttons: ButtonDescriptor[], popupClass : string = "", input: boolean = false): Popup {
|
||||
popupId++;
|
||||
const popup = new Popup(popupId);
|
||||
const btnMap = new Map<number, () => void>();
|
||||
@@ -113,6 +113,7 @@ export class WorkAdventureUiCommands extends IframeApiContribution<WorkAdventure
|
||||
className: button.className,
|
||||
};
|
||||
}),
|
||||
popupClass,
|
||||
input
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user