---------------------------------------------------------------------- This is the API documentation for the gdtest_scale_min_scale library. ---------------------------------------------------------------------- ## Classes Core classes SummaryCard(card_id: str = 'summary_card', width: str = '1400px') A wide HTML summary card with ``_repr_html_``. Renders a fixed-width HTML block useful for testing scale-to-fit on non-GT ``_repr_html_`` objects. Parameters ---------- card_id HTML ``id`` attribute. width CSS width (e.g., ``"1400px"``). ## Functions Public functions make_wide_table() Create a wide GT table with 14 columns. Returns ------- GT A GT table that overflows most containers. Examples -------- ```{python} from gdtest_scale_min_scale import make_wide_table make_wide_table() ``` make_narrow_table() Create a narrow 3-column GT table (always fits). Returns ------- GT A small table. make_styled_table() Create a styled GT table with 10 columns and color formatting. Returns ------- GT A moderately wide GT table with styled cells. ---------------------------------------------------------------------- This is the User Guide documentation for the package. ---------------------------------------------------------------------- ### No Override (Global Desktop) This page inherits the global `scale_to_fit_min_scale: "desktop"` setting. On viewports ≤ 992 px, the table scrolls. ## Wide GT Table ```{python} #| echo: false from gdtest_scale_min_scale import make_wide_table make_wide_table() ``` ## Styled GT Table ```{python} #| echo: false from gdtest_scale_min_scale import make_styled_table make_styled_table() ``` ## Narrow GT Table (not targeted) ```{python} #| echo: false from gdtest_scale_min_scale import make_narrow_table make_narrow_table() ``` ### Mobile Keyword This page overrides with `scale-to-fit-min-scale: mobile`. Scrolls only on viewports ≤ 576 px. ## Wide GT Table ```{python} #| echo: false from gdtest_scale_min_scale import make_wide_table make_wide_table() ``` ## Summary Card (non-GT) ```{python} #| echo: false from gdtest_scale_min_scale import SummaryCard SummaryCard(card_id='summary_card', width='1400px') ``` ### Tablet Keyword This page overrides with `scale-to-fit-min-scale: tablet`. Scrolls on viewports ≤ 768 px. ## Wide GT Table ```{python} #| echo: false from gdtest_scale_min_scale import make_wide_table make_wide_table() ``` ## Styled GT Table ```{python} #| echo: false from gdtest_scale_min_scale import make_styled_table make_styled_table() ``` ### Desktop Keyword This page explicitly sets `scale-to-fit-min-scale: desktop` (same as the global default, but declared per-page). Scrolls on viewports ≤ 992 px. ## Wide GT Table ```{python} #| echo: false from gdtest_scale_min_scale import make_wide_table make_wide_table() ``` ### Float Override This page overrides with a numeric value: `0.35`. If the computed scale drops below 35%, the table scrolls. ## Wide GT Table ```{python} #| echo: false from gdtest_scale_min_scale import make_wide_table make_wide_table() ``` ## Styled GT Table ```{python} #| echo: false from gdtest_scale_min_scale import make_styled_table make_styled_table() ``` ## Summary Card (non-GT) ```{python} #| echo: false from gdtest_scale_min_scale import SummaryCard SummaryCard(card_id='summary_card', width='1400px') ```