Releases: NuiCpp/Nui
v0.17.1 Fixed bug with Custom Event Context
The Observed(EventContext* ctx) constructor could be selected too easily by accident.
This now requires passing an extra parameter.
Added deferred tags
It is sometimes necessary to do things on the element AFTER it was inserted into the dom.
This is now possible with deferred attributes/properties.
Syntax still needs some improvement.
div {
reference.onMaterialize(/*...*/).defer(true)
// or !(class_ = "asdf")
}()
This will become this in an upcoming PR:
div {
!class_ = "asdf"
}()
v0.16.0 listen function added
You can now also listen to events on Observed<>
#include <nui/event_system/listen.hpp>
Observed<int> obs;
listen(obs, [](int const& i) {
// ...
});
obs = 7;
Nui::globalEventContext.executeActiveEventsImmediately();
Also observed now accept other (user) event contexts.
Which is useful to decouple app events von UI events.
#include <nui/event_system/listen.hpp>
Nui::EventContext userContext;
Observed<int> obs{userContext};
listen(userContext, obs, [](int const& i) {
// ...
});
obs = 7;
userContext.executeActiveEventsImmediately();
v0.15.4 Inline Injector Takes a Hint
Inline injections can now be moved anywhere in the head.
injection scripts can also (all or none) get the defer tag conditionally set by CMake option.
v0.15.3 More CMake Improvements
CMake Improvements and Dependency Updates
- Updated nlohmann_json to newer revision.
- Some small CMake improvements.
v0.15.1 Fixed Bug in Reference Attribute
What's Changed
Full Changelog: v0.15.0...v0.15.1
v0.15.0 Nui RPC in TS/JS
Add nui rpc implementation for javascript or typescript in the frontend.
Allows the use of other frameworks to communicate with the backend.
v0.14.0 Tailwind CSS Support
What's Changed
Full Changelog: v0.13.1...v0.14.0