class Prostore::TUI::TableListSource

Overview

In-memory (no DB round-trip) ListDataSource over Browser#tables — the full table-name list is always small enough to hold as an Array(String) and substring-filter locally, unlike RecordGrid's row search which stays server-side because row counts aren't.

Defined in:

prostore/tui/widgets/table_list.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(browser : Browser) #

[View source]

Instance Method Detail

def reload(filter : String, sort : Symbol) : Nil #

[View source]
def size : Int32 #

[View source]
def sort_keys : Array(Symbol) #

[View source]
def table_at : Array(String) #

[View source]
def title(filter : String, sort_key : Symbol) : String #

[View source]