Justin Starry
43e9347269
Add render method to Component and auto implement Renderable ( #563 )
...
* Add render method to Component and auto implement Renderable
* More cleanup
* Rename Renderable method from view to render
* Doc fixes
* fix
* Update CHANGELOG.md
2019-09-30 22:23:25 -04:00
cyrtophora
8500f75ad8
Fixed html class name typo ( #582 )
2019-08-12 21:20:57 -04:00
Justin Starry
3fed651b42
Add support for required props
2019-07-20 22:38:50 -04:00
Justin Starry
fe3d6249d3
Use updated jsx syntax in examples and documentation
2019-07-05 21:49:12 -04:00
Justin Starry
f9cf5ea47f
Bump example recursion limits
2019-06-13 10:29:53 -04:00
Denis Kolodin
2a1903cb4d
Update all examples to Rust 2018
2019-02-02 16:03:07 +03:00
Denis Kolodin
fc7f7a97ea
Add start_app method
2019-02-02 01:26:04 +03:00
Denis Kolodin
126f847d34
Remove CTX type of examples
2018-06-08 09:44:20 +03:00
Denis Kolodin
e73f025b09
Remove context argument from examples
2018-06-08 09:44:20 +03:00
Denis Kolodin
a8dd243d09
Add component's link to all examples
2018-06-08 09:44:20 +03:00
Denis Kolodin
ffd8a9890c
Rename Msg type of Component to Message
2018-04-26 15:47:33 +03:00
Denis Kolodin
b25a6a2602
Implement scheduler with slab
2018-04-24 22:49:52 +03:00
Denis Kolodin
deb838b2e1
Fix examples for the new context reference
2018-04-23 22:54:24 +03:00
Denis Kolodin
992c4e21a7
Hide Scope behind App
2018-04-20 22:24:52 +03:00
Denis Kolodin
8f227f949b
Move examplef out of showcase
2018-04-15 09:41:51 +03:00
Denis Kolodin
86af2b9d1c
Move demos into the showcase
2018-04-09 22:04:57 +03:00
Denis Kolodin
1cec52140f
Set properties on component creation
...
Fixes bug with initial value in custom_components example
2018-02-08 22:05:37 +03:00
Denis Kolodin
506169ebb9
Remove unnecessary enclosing div
2018-01-19 13:40:30 +03:00
Denis Kolodin
daf1ddd51d
Add Renderable trait, remove redundant App struct, rename ScopeRef to Env
2018-01-15 02:07:47 +03:00
Denis Kolodin
8a6f387eac
Fix missing docs
2018-01-12 10:57:24 +03:00
Denis Kolodin
f84e08c712
Revert part of examples back to App type workflow
2018-01-12 00:40:13 +03:00
Denis Kolodin
ecf364173f
Reimplement App type based on scope
...
Add prelude module
2018-01-11 23:50:58 +03:00
Denis Kolodin
b5949c349f
Add scopes hierarchy example
...
Shows how to send a message to a parent scope
2018-01-11 22:23:39 +03:00
Denis Kolodin
5228e39a87
Send messages from child component to a parent
2018-01-11 18:06:50 +03:00
Denis Kolodin
5a75b70da6
Link callback with parent's component scope
2018-01-11 17:36:57 +03:00
Denis Kolodin
40913f8c9a
Add events to components
...
Allow to have callbacks in properties. It's not finished,
because callback should send messages to a parent scope.
2018-01-11 10:13:43 +03:00
Denis Kolodin
1d51d1cca0
Replace internal serialization with memory transmuting
...
Reasons:
1) Better perfomance
2) User not forced to use serde crate
3) The only one way to send callbacks through a channel
2018-01-11 01:12:19 +03:00
Denis Kolodin
0570e6b278
Add should_update flag
2018-01-10 23:55:08 +03:00
Denis Kolodin
64404426d7
Send a new properties set to a component when it was changed
2018-01-10 23:33:41 +03:00
Denis Kolodin
7ec28249c4
Fix custom components example
...
Properties work not so fast because we should use pool of calls for
components update (now `setTimeout` used which is throttled)
2018-01-10 22:18:28 +03:00
Denis Kolodin
6c6ef1847f
Update properties when tree rerendered
2018-01-10 21:52:24 +03:00
Denis Kolodin
c172ff7b04
Add minimal properties implementation
...
It works on component initialization only.
2018-01-10 16:22:41 +03:00
Denis Kolodin
808d8b4fab
Add create method to Component trait
...
And remove Default trait requirement.
2018-01-09 10:47:20 +03:00
Denis Kolodin
5cd1fc688d
Rewrite examples with Component approach
...
Models were not split into multiple small components
2018-01-09 01:20:11 +03:00
Denis Kolodin
d043202259
Add context specification to components
2018-01-08 12:53:10 +03:00
Denis Kolodin
d6b087272f
Add minimal components implementation
2018-01-07 18:53:37 +03:00