Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
showSwitch(): void {
TNSFancyAlert.showSwitch("Don't ask me again", '#58B136', new TNSFancyAlertButton({
label: "Save",
action: (isSelected: boolean) => {
console.log(`Don't ask again was selected? ${isSelected}`);
}
}), 'switch.png', '#B3714F', 'Need a switch?', `It can be useful.`, 'Got it.');
}
}
public showSwitch() {
TNSFancyAlert.showSwitch(
`Don't show again`,
"#58B136",
new TNSFancyAlertButton({
label: "Save",
action: (isSelected: boolean) => {
console.log(`Don't show again was selected: ${isSelected}`);
}
}),
"switch.png",
"#B3714F",
"Need a switch?",
`It can be useful.`,
"Got it."
);
}