Content · Elementor

Data Table widget for Elementor

A table you edit in the widget: rows, columns, and basic styling. For a saved table reused across pages, see the Data Table Builder extension.

Open live demo

Get King Addons

This page describes the PHP/JS for this widget — not a renamed stub. Install the free plugin from WordPress.org.

Get King Addons

What it actually does

A table you edit in the widget: rows, columns, and basic styling. For a saved table reused across pages, see the Data Table Builder extension.

render() writes HTML data attributes: data-custom-pagination, data-entry-info, data-row-pagination, data-rows-per-page, data-table, data-table-export, data-table-script, data-table-sorting.

Some inspector controls are marked Pro in PHP (eicon-pro-icon / king-addons-pro-control). Those need King Addons Pro, not Elementor Pro.

The widget script reads data attributes: data-custom-pagination, data-entry-info, data-row-pagination, data-rows-per-page, data-table, data-table-export, data-table-sorting, data-table-type-custom.

How to add it in Elementor

  1. Install King Addons. Install Elementor and King Addons. Get King Addons from WordPress.org.
  2. Edit with Elementor. Open a page and click Edit with Elementor.
  3. Insert the widget. Search the panel for “Data Table”. Typing “king” lists every King Addons widget.
  4. Set inspector controls from this widget’s PHP. Configure “Data Type”, “Show Export Buttons (Pro)”, “Show Search (Pro)”, “Show Sorting (Pro)”. Style and Content tabs are listed on this page.

When to use it

Tip: After King Addons is active, type king in the Elementor search box to list every widget, including Data Table.

Inspector controls from this widget’s PHP

ControlWhat the code does
General — Data TypeOptions: Custom; CSV (Pro).
General — Show Export Buttons (Pro)Switcher inspector control (`enable_table_export`).
General — Show Search (Pro)Switcher inspector control (`enable_table_search`).
General — Show Sorting (Pro)Written to the `data-table-sorting` HTML attribute in render().
General — Show Pagination (Pro)Written to the `data-custom-pagination` HTML attribute in render(). When this switch is on, render() outputs Swiper pagination.
General — Equal Column WidthSwitcher inspector control (`equal_column_width`).
General — Table Row IndexWritten to the `data-row-pagination` HTML attribute in render(). Passed through to Swiper pagination.
General — Prevent Word WrapSwitcher inspector control (`white_space_text`).
Repeater Table Header — TitleText inspector control (`table_th`).
Repeater Table Header — MediaSwitcher inspector control (`header_icon`).
Repeater Table Header — Media TypeOptions: Icon; Image.
Repeater Table Header — Media PositionOptions: Left; Right; Top; Bottom.
Repeater Table Header — Select IconIcon rendered with Elementor Icons_Manager in this widget’s HTML.
Repeater Table Header — ImageMedia Library attachment(s); render() uses the URL/ID as the image source.
Repeater Table Header — Image SizeWrites CSS (width, height) onto the widget’s front-end markup. (min 0, max 100).
Repeater Table Header — Icon ColorWrites CSS (color, fill) onto the widget’s front-end markup.
Repeater Table Header — ColorWrites CSS `color` onto the widget’s front-end markup.
Repeater Table Header — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Repeater Table Header — Col SpanNumeric control (default 1, min 1).
Repeater Table Header — AlignmentWrites CSS `text-align` onto the widget’s front-end markup. Options: Left; Center; Right.
Header — Repeater Table HeaderRepeater rows; render() loops each item to build the list or slides.
Repeater Table Rows — Row TypeOptions: Row; Column.
Repeater Table Rows — ContentTextarea inspector control (`table_td`).
Repeater Table Rows — Content URLElementor URL control (href, new tab, nofollow) applied to a front-end link.
Repeater Table Rows — MediaSwitcher inspector control (`td_icon`).
Repeater Table Rows — Media TypeOptions: Icon; Image.
Repeater Table Rows — Media PositionOptions: Left; Right; Top; Bottom.
Repeater Table Rows — Select IconIcon rendered with Elementor Icons_Manager in this widget’s HTML.
Repeater Table Rows — ImageMedia Library attachment(s); render() uses the URL/ID as the image source.
Repeater Table Rows — Image SizeWrites CSS (width, height) onto the widget’s front-end markup. (min 0, max 100).
Repeater Table Rows — Icon SizeWrites CSS (i, font-size) onto the widget’s front-end markup. (min 1, max 100).
Repeater Table Rows — Icon ColorWrites CSS (color, fill) onto the widget’s front-end markup.
Repeater Table Rows — Show Tooltip (Pro)Switcher inspector control (`content_tooltip`).
Repeater Table Rows — ColorWrites CSS `color` onto the widget’s front-end markup.
Repeater Table Rows — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Repeater Table Rows — Background Color (Hover)Writes CSS `background-color` onto the widget’s front-end markup.
Repeater Table Rows — Col SpanNumeric control (default 1, min 1).
Repeater Table Rows — Row SpanNumeric control (default 1, min 1).
Repeater Table Rows — AlignmentWrites CSS `text-align` onto the widget’s front-end markup. Options: Left; Center; Right.
Content — Repeater Table RowsRepeater rows; render() loops each item to build the list or slides.
General — Table Min WidthWrites CSS (min-width, width) onto the widget’s front-end markup. (min 0, max 1500).
General — BorderWrites CSS `border-style` onto the widget’s front-end markup. Options: None; Solid; Double; Dotted; Dashed; Groove.
General — Border ColorWrites CSS `border-color` onto the widget’s front-end markup.
General — Border WidthWrites CSS `border-width` onto the widget’s front-end markup.
General — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup. (min 0, max 200).
General — Transition Duration (seconds)Writes CSS (transition-duration, transition-property) onto the widget’s front-end markup. (default 0.3, min 0, max 5).
Header (Normal) — ColorWrites CSS `color` onto the widget’s front-end markup.
Header (Normal) — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Header (Hover) — ColorWrites CSS (th, color, cursor) onto the widget’s front-end markup.
Header (Hover) — Background ColorWrites CSS (th, background-color) onto the widget’s front-end markup.
Header — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} th`.
Header — Icon SizeWrites CSS (font-size, width, height) onto the widget’s front-end markup. (min 1, max 70).
Header — Sorting Icon SizeWrites CSS (font-size, width, height) onto the widget’s front-end markup. (min 1, max 70).
Header — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Header — Image MarginWrites CSS `margin` onto the widget’s front-end markup.
Header — Icon MarginWrites CSS `margin` onto the widget’s front-end markup.
Header — AlignmentWrites CSS (th, text-align) onto the widget’s front-end markup. Options: Left; Center; Right.
Content (Normal) — ColorWrites CSS (tr, color) onto the widget’s front-end markup.
Content (Normal) — Background ColorWrites CSS (tr, background-color) onto the widget’s front-end markup.
Content (Normal) — Color (Even Row Td Color)Writes CSS (tr, color) onto the widget’s front-end markup.
Content (Normal) — Background Color (Even Row Td Bg Color)Writes CSS (tr, background-color) onto the widget’s front-end markup.
Content (Hover) — ColorWrites CSS (tr, td, color, fill) onto the widget’s front-end markup.
Content (Hover) — Background ColorWrites CSS (tr, background-color, cursor) onto the widget’s front-end markup.
Content (Hover) — Color (Even Row Td Color Hover)Writes CSS (tr, king-addons-table-text, color, td, king-addons-table-td-pag, fill) onto the widget’s front-end markup.
Content (Hover) — Background Color (Even Row Td Bg Color Hover)Writes CSS (tr, background-color, cursor) onto the widget’s front-end markup.
Content — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} td, {{WRAPPER}} i.fa-question-circle`.
Content — Icon SizeWrites CSS (i, font-size, height, width, span) onto the widget’s front-end markup. (min 1, max 70).
Content — Image SizeWrites CSS (width, height) onto the widget’s front-end markup. (min 1, max 150).
Content — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Content — Image Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Content — Image MarginWrites CSS `margin` onto the widget’s front-end markup.
Content — Icon MarginWrites CSS `margin` onto the widget’s front-end markup.
Content — AlignmentWrites CSS (td, text-align) onto the widget’s front-end markup. Options: Left; Center; Right.

Content and Style tabs from this widget’s PHP, including repeater fields and group controls (typography, background, border, shadow). Elementor’s Advanced tab is core Elementor and is not listed here.

FAQ

Which Data Table options need King Addons Pro?

Controls marked with the Pro icon in this widget’s PHP. King Addons Pro is a separate license from Elementor Pro.

How do I add Data Table in Elementor?

Install King Addons and Elementor, edit a page, search the panel for “Data Table”, drag it onto the canvas, then set Content and Style.

Do I need Elementor Pro?

No. King Addons runs on free Elementor. Some King Addons options (for example template-in-accordion, extra popup conditions, parts of the template catalog) need King Addons Pro — not Elementor Pro.

Related content widgets

Get King Addons

One free plugin. 80+ Elementor widgets, 650+ templates, and 4,000+ sections. Search for Data Table after you activate it.

Get King Addons