Skip to content

Commit 9b0741a

Browse files
authored
Merge pull request #52 from luckynumberke7in/master
Expand on usage of examples
2 parents a3af992 + 7344a4f commit 9b0741a

File tree

14 files changed

+44
-15
lines changed

14 files changed

+44
-15
lines changed

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:

examples/pagination/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 pagination with a table.
1+
### Example that shows how to use pagination with 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)