Skip to content

Commit 7344a4f

Browse files
Update README.md in examples
This adds an explicit line letting others know they must fork / download the whole repo to use each example. Also, added a touch of markdown styling.
1 parent 9108a3d commit 7344a4f

File tree

15 files changed

+44
-26
lines changed

15 files changed

+44
-26
lines changed

examples/README.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/bootstrap/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
A simple table example with just local data stored as `Vec<Book>` Uses the Bootstrap class provider.
1+
### A simple table example with just local data stored as `Vec<Book>` Uses the Bootstrap class provider.
2+
3+
To make this example work, you must download / fork the whole repo because this is in the Cargo.toml: `leptos-struct-table = { path = "../.." }`.
24

35
If you don't have it installed already, install [Trunk](https://trunkrs.dev/)
46
as well as the wasm32-unknown-unknown target:

examples/custom_renderers_svg/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Example that shows how use custom renderers to render the table as SVG.
1+
### Example that shows how use custom renderers to render the table as SVG.
2+
3+
To make this example work, you must download / fork the whole repo because this is in the Cargo.toml: `leptos-struct-table = { path = "../.." }`.
24

35
If you don't have it installed already, install [Trunk](https://trunkrs.dev/)
46
as well as the wasm32-unknown-unknown target:

examples/custom_row_renderer/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
A simple table example with just local data stored as `Vec<Book>` demonstrating a custom row renderer and skipping header titles.
1+
### A simple table example with just local data stored as `Vec<Book>` demonstrating a custom row renderer and skipping header titles.
2+
3+
To make this example work, you must download / fork the whole repo because this is in the Cargo.toml: `leptos-struct-table = { path = "../.." }`.
24

35
If you don't have it installed already, install [Trunk](https://trunkrs.dev/)
46
as well as the wasm32-unknown-unknown target:

examples/custom_type/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
A table example with custom local data stored as `Vec<Rc<Book>>`.
1+
### A table example with custom local data stored as `Vec<Rc<Book>>`.
2+
3+
To make this example work, you must download / fork the whole repo because this is in the Cargo.toml: `leptos-struct-table = { path = "../.." }`.
24

35
If you don't have it installed already, install [Trunk](https://trunkrs.dev/)
46
as well as the wasm32-unknown-unknown target:

examples/editable/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
A table example with editable cells and data that is stored as `Vec<Book>`.
2-
Uses the Tailwind class provider.
1+
### A table example with editable cells and data that is stored as `Vec<Book>`.
2+
3+
To make this example work, you must download / fork the whole repo because this is in the Cargo.toml: `leptos-struct-table = { path = "../.." }`.
4+
5+
#### Uses the Tailwind class provider.
36

47
The way Tailwind works, is to scan the classes in the code. Due to this it is
58
recommended to copy the file `src/class_providers/tailwind.rs` into your project as done in this example.

examples/generic/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
A table example with a generic struct.
1+
### A table example with a generic struct.
2+
3+
To make this example work, you must download / fork the whole repo because this is in the Cargo.toml: `leptos-struct-table = { path = "../.." }`.
24

35
If you don't have it installed already, install [Trunk](https://trunkrs.dev/)
46
as well as the wasm32-unknown-unknown target:

examples/getter/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
A table example with a getter method.
1+
### A table example with a getter method.
2+
3+
To make this example work, you must download / fork the whole repo because this is in the Cargo.toml: `leptos-struct-table = { path = "../.." }`.
24

35
If you don't have it installed already, install [Trunk](https://trunkrs.dev/)
46
as well as the wasm32-unknown-unknown target:

examples/i18n/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
A simple table example showing how to integrate leptos-i18n to translate the titles.
1+
### A simple table example showing how to integrate leptos-i18n to translate the titles.
2+
3+
To make this example work, you must download / fork the whole repo because this is in the Cargo.toml: `leptos-struct-table = { path = "../.." }`.
24

35
If you don't have it installed already, install [Trunk](https://trunkrs.dev/)
46
as well as the wasm32-unknown-unknown target:

examples/paginated_rest_datasource/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Example that shows how to use a paginated REST API as a data source for a table.
1+
### Example that shows how to use a paginated REST API as a data source for a table.
2+
3+
To make this example work, you must download / fork the whole repo because this is in the Cargo.toml: `leptos-struct-table = { path = "../.." }`.
24

35
If you don't have it installed already, install [Trunk](https://trunkrs.dev/)
46
as well as the wasm32-unknown-unknown target:

0 commit comments

Comments
 (0)