gradio/js/dataframe
Abubakar Abid 4030f28af6
Allows updating the dataset of a gr.Examples (#8745)
* helpers

* add changeset

* changes

* add changeset

* changes

* tweak

* format

* example to docs

* add changeset

* fixes

* add tuple

* add changeset

* print

* format

* clean'

* clean

* format

* format backend

* fix backend tests

* format

* notebooks

* comment

* delete demo

* add changeset

* docstring

* docstring

* changes

* add changeset

* components

* changes

* changes

* format

* add test

* fix python test

* use deep_equal

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-15 09:19:52 -07:00
..
shared 8394 df hidden items (#8763) 2024-07-12 18:19:43 +01:00
CHANGELOG.md chore: update versions (#8663) 2024-07-12 11:54:28 -07:00
Dataframe.stories.svelte
Example.svelte Allows updating the dataset of a gr.Examples (#8745) 2024-07-15 09:19:52 -07:00
Index.svelte Client node fix (#8252) 2024-05-09 12:06:28 +01:00
package.json chore: update versions (#8663) 2024-07-12 11:54:28 -07:00
README.md

@gradio/dataframe

<script>
    import { BaseDataFrame, BaseExample } from "@gradio/dataframe";
</script>

BaseDataFrame

	export let datatype: Datatype | Datatype[];
	export let label: string | null = null;
	export let headers: Headers = [];
	let values: (string | number)[][];
	export let value: { data: Data; headers: Headers; metadata: Metadata } | null;
	export let col_count: [number, "fixed" | "dynamic"];
	export let row_count: [number, "fixed" | "dynamic"];
	export let latex_delimiters: {
		left: string;
		right: string;
		display: boolean;
	}[];

	export let editable = true;
	export let wrap = false;
	export let root: string;
	export let i18n: I18nFormatter;

	export let height = 500;
	export let line_breaks = true;
	export let column_widths: string[] = [];

BaseExample

	export let gradio: Gradio;
	export let value: (string | number)[][] | string;
	export let type: "gallery" | "table";
	export let selected = false;
	export let index: number;