class SemanticGrid
source · line 20public
public class SemanticGrid public constructor(
public val columns: Array<SemanticGridColumn>,
public val describe: (SemanticItemKey, Long) -> SemanticItemProperties?,
public val span: ((SemanticItemKey, Long) -> SemanticGridSpan)? = None,
/** False for full-row content that is outside this grid's column space. */
public val hasCells: ((SemanticItemKey) -> Boolean)? = None
)
Describes cells from the collection's immutable data snapshot, without building views.
property span
source · line 23public
public val span: ((SemanticItemKey, Long) -> SemanticGridSpan)? = None
get: public read-only
property hasCells
source · line 25public
public val hasCells: ((SemanticItemKey) -> Boolean)? = None
get: public read-only
False for full-row content that is outside this grid's column space.
function indexOf
source · line 34public
public fun indexOf(key: SemanticItemKey): Long?
parameter key
source · line 34public
key: SemanticItemKey
property columns
source · line 21public
public val columns: Array<SemanticGridColumn>
get: public read-only
property describe
source · line 22public
public val describe: (SemanticItemKey, Long) -> SemanticItemProperties?
get: public read-only
constructor constructor
source · line 20public
constructor(public val columns: Array<SemanticGridColumn>, public val describe: (SemanticItemKey, Long) -> SemanticItemProperties?, public val span: ((SemanticItemKey, Long) -> SemanticGridSpan)? = None, public val hasCells: ((SemanticItemKey) -> Boolean)? = None)
parameter describe
source · line 22public
public val describe: (SemanticItemKey, Long) -> SemanticItemProperties?
parameter columns
source · line 21public
public val columns: Array<SemanticGridColumn>
parameter span
source · line 23public
public val span: ((SemanticItemKey, Long) -> SemanticGridSpan)? = None
parameter hasCells
source · line 25public
public val hasCells: ((SemanticItemKey) -> Boolean)? = None