gradio/js/dataframe
pngwn 5d1e8dae5a
batch UI updates on a per frame basis (#7564)
* changes

* process fe fn tests

* cleanup

* cleanup

* create_target_meta tests and abstraction

* add interactivity detection and tests

* more functions more tests

* add tests for component loader, fix errors

* fix everything

* add changeset

* add changeset

* ci

* cleanup

* cleanup

* test

* fix again

* tweaks

* cleanup

* add changeset

* fix loading_status

* cleanup

* ensure updates have been flushed before making API requests

* add changeset

* df fix

* fixes

* fix dataframe updates

* fix dataframe updates

* remove $open var

* add changeset

* fix tests

* extend timeout for lite

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-03-13 13:46:40 +00:00
..
shared batch UI updates on a per frame basis (#7564) 2024-03-13 13:46:40 +00:00
CHANGELOG.md chore: update versions (#7630) 2024-03-08 16:35:23 -08:00
Dataframe.stories.svelte Add show_label check to gr.Dataframe (#7283) 2024-02-02 09:45:59 -08:00
Example.svelte Refactors get_fetchable_url_or_file() to remove it from the frontend (#7528) 2024-02-26 13:01:00 -08:00
Index.svelte batch UI updates on a per frame basis (#7564) 2024-03-13 13:46:40 +00:00
package.json chore: update versions (#7630) 2024-03-08 16:35:23 -08:00
README.md Refactors get_fetchable_url_or_file() to remove it from the frontend (#7528) 2024-02-26 13:01:00 -08:00

@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;