Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const LMFavorite = (row, cell, value, col, rowData, api): string => {
const isChecked: boolean = (rowData && rowData.price > 200); // jshint ignore:line
const icon = isChecked ? 'star-filled' : 'star-outlined';
return '<span class="audible">' + Soho.Locale.translate('Favorite') +
'</span><span class="icon-favorite">' + SohoIconUtils.createIcon({ icon: icon }) + '</span>';
};
showNotification(type: SohoNotificationType = SohoNotificationService.INFO) {
this.notificationService.show({ parent: '.page-container.scrollable', message: 'This is a Toast message', type: type });
}
}
showToast(position: SohoToastPosition = SohoToastService.TOP_RIGHT) {
this.toastService.show({draggable: true, title: 'Sample Message', message: 'This is a Toast message', position: position});
}
}