ListAction Struct

Apps › Core

#include <vortex/vapp.h>

Public Members

std::string key
std::string id
std::string action

Detailed Description

Target of a list action button, a button with Intent: "list:<action>" inside a list's row template.

Apps don't build these. A click passes the three members to the app's list action handler (see VApp::set_list_action_handler()). A button outside the rows, like an Add button, names its list with Intent: "list:<action>:<key>" instead, and its id stays empty.

Member Variable Documentation

std::string key

List's key, like "notes"

std::string id

Row's ListEntry::id; empty for a button outside the rows

std::string action

Action name from the intent, like "remove"

› Documentation
Appearance
Theme
—