Skip to content

PO-TABLE - Não apresentação de ícone com type: 'icon' #834

Discussion options

You must be logged in to vote

Bom dia,

Para exibir os ícones, atualmente, você precisa retornar nos items da tabela os valores correspondente ao ícone que deseja exibir, por exemplo:
// colunas

[
{ property: 'columnIcon', label: 'Actions', type: 'icon', icons: [
  { value: 'add', icon: 'po-icon-plus', color: 'color-06', action: this.add.bind(this), tooltip: 'Adiciona um novo item' },
  { value: 'edit', icon: 'po-icon-edit', action: this.edit.bind(this) },
  { value: 'delete', icon: 'po-icon-delete', color: 'color-12', action: this.remove.bind(this) }
]},
]

// registros

[{ id: 123, name: 'John', columnIcon: ['add', 'edit', 'delete'] }]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@viniciusgati
Comment options

Answer selected by anliben
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: answered Issue with answer correct or accept
3 participants