| 开发者 | nathannoom |
|---|---|
| 更新时间 | 2026年11月22日 12:45 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
baratables folder to /wp-content/plugins/.[bara_table id="your-table-slug"].CSV files, manual data, WordPress content, external MySQL/MariaDB databases, and snapshots from public CSV, JSON or Google Sheets URLs.
Remote snapshots are manual and administrator-only: save the public HTTPS URL and format, click Fetch snapshot, and published tables use the stored snapshot without contacting the source. CSV endpoints must return text/csv or application/csv; text/plain is rejected, though JSON endpoints may use it. Authentication, private Sheets, scheduled refresh and schema changes are unsupported; re-create the table when the columns change.
Use a TablePress single-table JSON export; Ninja Tables classic and drag-and-drop JSON also work (export an externally connected Ninja table as CSV). WP Table Builder, Visualizer, Supsystic, League Table, wpDataTables, TableKit and Tablesome exports import too, as do HTML tables; a ZIP imports its first supported table. Imports rebuild table data and compatible display settings, not styling, formulas, macros, shortcodes, charts or connections. XLSX and ODS formulas use cached results and are never executed; save legacy XLS or encrypted workbooks in a current format first. Uploads are capped at 5 MB; a ZIP holds 50 entries of 5 MB each and 20 MB in total, an XLSX or ODS archive 200.
Tables load 1,000 rows by default; the Options tab sets a limit from 1 to 10,000. A table that stores its own rows -- typed, pasted or imported -- holds at most 1,000. External MySQL/MariaDB tables can page large tables on demand instead: at most 100 rows per request, paged, sorted and searched by the database within a 100,000-result limit. It requires selected columns, pagination and a non-null single-column primary or unique key, and none of: access rules, value transforms, column filters, formatted dates, Number columns, footer totals, or the export, copy and print buttons. A table using any of them keeps standard loading, and the editor names the reason. Database search follows the source collation. Encrypt the connection with TLS for any host outside your own machine; TLS needs the path of the CA certificate that signed it, as PHP's MySQL driver cannot use the system trust store.
Yes. Filtering or searching updates the page address, so you can share the view, or build it with btbl_filter[column-slug], btbl_search and btbl_search_cols.
Create a table first, then go to Charts and create a chart linked to it, embedded with [bara_chart id="your-chart-slug"].
Yes. The Design tab (charts get one too) styles tables without code: presets, colors, typography, spacing and a per-chart series palette, each live in the preview as you type. It also takes per-table Additional CSS, scoped to that table, except @import and @font-face, which load for the whole page. What you leave blank falls through to the site default, then to your theme.
Yes. BaraTables > Design sets the design every table and chart starts from. A table or chart that sets its own value keeps it, value by value; one that switches the site design off follows your theme. Copy CSS hands the whole design back as CSS.
Choose Number in a column's settings: plain decimals such as -12.5 join numeric sorting, conditional styles and footers, while currency symbols, percentages, grouped numbers, words, blanks and out-of-range values stay visible but excluded. Footers calculate every loaded row matching the current search and filters, not only the current page; rows beyond the row limit are excluded, as are exports.
Minimal frontend styles keep your theme in control; adjust them with your theme, the Site Editor, or custom CSS. The Design tab writes its choices as --btbl-* custom properties on .btbl-table-wrapper -- a stable API for themes: set a token on any ancestor to re-skin every table under it, or copy the block with Copy CSS and manage it in your theme via the "Theme CSS" output mode. --btbl-accent, --btbl-border, --btbl-muted and --btbl-surface are declared by the wrapper itself, so they follow your theme's primary color and the plugin's own default rather than an ancestor's value. Tokens cover the header, stripe, hover, border, footer and conditional colors, and the chart container's shape.
A chart's text, grid and series colors are drawn on its canvas, so they are not CSS: they live in the chart's own settings, where the same Design tab controls them. The chart container's shape is CSS, and rides the token layer with the tables.
See https://ktisisweb.com/baratables/ for screenshots and styling guidance.
--btbl-* token API for themes.