Coverage for src / lexigram / admin / ui / columns / base.py: 100%
3 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-08-10 14:02 +0800
« prev ^ index » next coverage.py v7.13.5, created at 2026-08-10 14:02 +0800
1"""
2FilamentPHP-style Column base class with Fluent API.
4Provides a fluent API (Builder pattern) for defining table columns with sorting,
5searching, formatting, and custom rendering. All configuration methods return
6`self` to enable method chaining.
8Example:
9 >>> from lexigram.admin.ui.columns import TextColumn
10 >>>
11 >>> # Fluent API with method chaining
12 >>> column = (TextColumn("email")
13 ... .sortable() # Enable sorting
14 ... .searchable() # Include in search
15 ... .copyable() # Add click-to-copy
16 ... .color("blue") # Set text color
17 ... .limit(50)) # Truncate at 50 chars
18 >>>
19 >>> # All methods return self for chaining
20 >>> assert column._sortable is True
21 >>> assert column._searchable is True
22"""
24from __future__ import annotations
26# Import the complete Column base class from the column package
27from lexigram.admin.ui.columns.column import ColumnBase as Column
29__all__ = ["Column"]