ng-matero / extensions

Angular Material Extensions Library.
https://ng-matero.github.io/extensions/
MIT License
388 stars 48 forks source link

issue for mtx-grid #286

Closed someshwarjadhav closed 5 months ago

someshwarjadhav commented 6 months ago

how to use badge at the mat-icon in mtx-grid ?

nzbin commented 6 months ago

https://ng-matero.github.io/extensions/components/grid/overview#custom-cell-template-2

someshwarjadhav commented 6 months ago

i used this before - badge: { content: 1, size: 'small', }, but how to declare badge in interface.ts

nzbin commented 6 months ago

i used this before - badge: { content: 1, size: 'small', }, but how to declare badge in interface.ts

I don't quite understand, the badge only support with button type

columns = [
  {
    header: '...,'
    field: '...',
    buttons: [
      {
        type: 'icon',
        text: 'delete',
        icon: 'delete',
        color: 'warn',
        badge: {
          content: '...',
          description: '...',
          color: '...',
          position: '...',
          size: '...',
          overlap: '...',
          disabled: '...',
          hidden: '...',
        }
      },
    ],
  }
]
someshwarjadhav commented 6 months ago

how to declare badge: { content: '...', description: '...', color: '...', position: '...', size: '...', overlap: '...', disabled: '...', hidden: '...', } this badge in interfaces.d.ts

nzbin commented 6 months ago

how to declare badge: { content: '...', description: '...', color: '...', position: '...', size: '...', overlap: '...', disabled: '...', hidden: '...', } this badge in interfaces.d.ts

I can't understand your question, can you provide more details?