angular-ui/ui-grid

Ability to disable preEval and refer to mutliple eneity fields in 'columnDef.field'

Open

#5.346 geöffnet am 22. Apr. 2016

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.496 Forks)batch import
help wanted

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I want to have fields like someProp || 'N/A', but the current preEval function turns it into something like row['eneity']['someProp || \'N/A\''], which is obviously broken.

In addition, if I want to refer to more than one property in the expression, I'll have to manually prefix row.entity., which is also not guaranteed to work.

Can a switch be added to allow "raw" expressions in field without preEval and the prefixing of row.entity. It might be necessary to provide a local variable to the expression (e.g. entity) which points to row.entity.

Contributor Guide