akveo / akveo/ng2-smart-table

Change with ValuePrepareFunction boolean for a check icon

オープン
#972 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
1.6k
フォーク
867
PR マージ指標
30日以内にマージされた PR はありません

説明

Working with a Boolean field shows in the cell a "true" or "false", I want to change it for an image for true and another for false; I use the UsePrepareFunction function but change the final value when reading the source of the table.

I just want to change the presentation of a TRUE or FALSE data without changing the source.

Mi source is.
```
enabled: {
title: 'Activo',
valuePrepareFunction: (value) => {
return value ? '' : '';
},
editor: {
type: 'checkbox',
config: {
true: '',
false: ''
}
},
filter: false,
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。