# tableberg/1.1.5/src/elements/bindable-attributes.ts

Tableberg – Simple Gutenberg Table Block, version 1.1.5. 28 lines.

- Page: https://pluginprobe.com/plugins/tableberg/1.1.5/code/src/elements/bindable-attributes.ts
- Raw: https://pluginprobe.com/plugins/tableberg/1.1.5/raw/src/elements/bindable-attributes.ts
- Modified: 2026-09-16T03:30:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tableberg/1.1.5/code/src/elements/bindable-attributes.ts#L10-L20`.

```typescript
import { __ } from "@wordpress/i18n";
import { buttonBindableAttributes } from "../blocks/button/element";
import { textBindableAttributes } from "../blocks/text/element";
import { imageBindableAttributes } from "../blocks/image/element";
import { listBindableAttributes } from "../blocks/list/element";
import { BindableAttribute } from "../dynamic-data";
import { getExtendedElementDefinition } from "../extensions";

export function getElementBindableAttributes(
    elementType: string
): BindableAttribute[] {
    switch (elementType) {
        case "text":
            return textBindableAttributes;
        case "button":
            return buttonBindableAttributes;
        case "image":
            return imageBindableAttributes;
        case "list":
            return listBindableAttributes;
        default:
            return (
                getExtendedElementDefinition(elementType)?.bindableAttributes ||
                []
            );
    }
}

```
