Options
All
  • Public
  • Public/Protected
  • All
Menu

Model is the interface for feeding dynamic data into .slint views.

A model is organized like a table with rows of data. The fields of the data type T behave like columns.

Type parameters

  • T

Hierarchy

  • Model

Implemented by

Index

Properties

Methods

Properties

notify

notify: ModelPeer

This public member is set by the run-time and implementation must use this to notify the run-time of changes in the model.

Methods

rowCount

  • rowCount(): number
  • Implementations of this function must return the current number of rows.

    Returns number

rowData

  • rowData(row: number): T
  • Implementations of this function must return the data at the specified row.

    Parameters

    • row: number

    Returns T

setRowData

  • setRowData(row: number, data: T): void
  • Implementations of this function must store the provided data parameter in the model at the specified row.

    Parameters

    • row: number
    • data: T

    Returns void