gradio/js/dataframe
Shubham raj aab2a75f06
Allow selecting texts in dataframe cells (#7154)
* bugfix: Enable user-select for texts in editable cell

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-29 16:51:46 -08:00
..
shared Allow selecting texts in dataframe cells (#7154) 2024-01-29 16:51:46 -08:00
CHANGELOG.md chore: update versions (#7083) 2024-01-25 16:10:24 -08:00
Dataframe.stories.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Example.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Index.svelte Fix for stylized DataFrame (#6318) 2023-11-07 11:16:33 -08:00
package.json chore: update versions (#7083) 2024-01-25 16:10:24 -08:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00: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 samples_dir: string;
	export let type: "gallery" | "table";
	export let selected = false;
	export let index: number;