- Index
- »
- fan.haystack
- »
- Row
Row
@Js
const abstract class Row : Obj, Dict
Row of a Grid. Row also implements the Dict mixin to expose all of the columns as name/value pairs.
Scalar value for the cell
Parent grid
Get display string for the given column, if value is null then return null
Get the column val by name or null
Always returns false
Return true if the given name is not mapped to a non-null column val
Return true if the given name is mapped to a non-null column val
Get the column val by name
Iterate through all the columns until function returns null, then break iteration and return the result
Iterate through all the columns
Str? disOf(Col col)
Get display string for the given column, if value is null then return null. If the column meta defines a "format"* pattern, then it is used to format the value via the appropiate toLocale method.
virtual Void each(|Obj,Str| f)
Iterate through all the columns.
virtual Obj? eachWhile(|Obj,Str->Obj?| f)
Iterate through all the columns until function returns null, then break iteration and return the result.
@Operator
virtual Obj? get(Str name)
Get the column val by name or null
abstract Grid grid()
Parent grid
virtual Bool has(Str name)
Return true if the given name is mapped to a non-null column val.
virtual Bool isEmpty()
Always returns false.
virtual Bool missing(Str name)
Return true if the given name is not mapped to a non-null column val.
virtual Obj? trap(Str name, Obj?[]? args)
Get the column val by name. If column name doesn't exist or if the column value is null, then throw UnknownNameErr.
abstract Obj? val(Col col)
Scalar value for the cell