ListEntry Struct

Apps › Core

#include <vortex/vapp.h>

Public Members

std::string id
int fields

Detailed Description

One row of the data that an app supplies to a list through VApp::set_list().

A list container's style binds Bind: "List:<key>", and its first child is a template that the core repeats once per entry. Nodes inside the template read the entry's fields through row binds, like Bind: "Field:title" (see ResolvedStyle::bind):

ListEntry entry;
entry.id = "n1";
entry.fields["title"] = "Groceries";

app.set_list("notes", { entry });

Member Variable Documentation

std::string id

Row's key across renders, like "n1"

int fields

Values that the row binds read

› Documentation
Appearance
Theme
—