How to use the ids-enterprise-ng.SohoIconUtils.createIcon function in ids-enterprise-ng

To help you get started, we’ve selected a few ids-enterprise-ng examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github infor-design / enterprise-ng / src / app / datagrid / datagrid-custom-formatter.demo.ts View on Github external
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>';
};

ids-enterprise-ng

Infor Design System (IDS) Enterprise Angular Components

Apache-2.0
Latest version published 10 days ago

Package Health Score

76 / 100
Full package analysis