pub struct TileGridProps {
pub data_path: String,
pub form_id: String,
pub categories_path: Option<String>,
pub columns: Option<u8>,
pub search: Option<bool>,
pub search_placeholder: Option<String>,
pub all_label: Option<String>,
}Expand description
Props for the TileGrid builtin — a touch-first, responsive tile grid
whose Tile children iterate via the $each contract (Phase 257 target).
Renderer + registration land in Phase 256; this is the contract only.
Fields§
§data_path: StringJSON pointer to the product array the grid iterates over via $each.
form_id: StringThe HTML id of the Form element that owns this grid’s hidden
inputs. Both the grid and its paired SelectionPanel must be descendants
of that form (D-11): the selection runtime scopes its queries and its
input-event listener to document.getElementById(form_id), so tiles
placed outside the form neither submit with it nor appear in the panel.
Emitted as data-selection-form="{form_id}" on the grid root — the
same attribute the SelectionPanel root carries — so the pairing is
introspectable in markup.
categories_path: Option<String>JSON pointer to a category string array for the integrated category strip. Absent → no category strip is rendered.
columns: Option<u8>Override for the base-viewport grid column count (Phase 256 render default is 2).
search: Option<bool>Enables the client-side text-search input (Phase 255 setupFilters).
search_placeholder: Option<String>Placeholder text for the search input. Render default is “Search”
(neutral English — this crate is project-agnostic). Pass
search_placeholder: "Cerca" or any locale string from the consumer.
Ignored when search is absent/false (no input is rendered).
all_label: Option<String>Label for the integrated category strip’s “show all” tab. Render
default is “All” (neutral English — this crate is project-agnostic).
Pass all_label: "Tutte" or any locale string from the consumer.
Ignored when categories_path is absent (no strip is rendered).
Trait Implementations§
Source§impl Clone for TileGridProps
impl Clone for TileGridProps
Source§fn clone(&self) -> TileGridProps
fn clone(&self) -> TileGridProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TileGridProps
impl Debug for TileGridProps
Source§impl<'de> Deserialize<'de> for TileGridProps
impl<'de> Deserialize<'de> for TileGridProps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for TileGridProps
impl JsonSchema for TileGridProps
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for TileGridProps
impl PartialEq for TileGridProps
Source§fn eq(&self, other: &TileGridProps) -> bool
fn eq(&self, other: &TileGridProps) -> bool
self and other values to be equal, and is used by ==.