Skip to content

Releases: NuiCpp/Nui

Added deferred tags

Choose a tag to compare

@5cript 5cript released this 18 Jul 08:50
992eff2

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

Choose a tag to compare

@5cript 5cript released this 15 Jul 13:46
f8a8c69

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

Choose a tag to compare

@5cript 5cript released this 12 Jul 00:41
6cfb6e3

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

Choose a tag to compare

@5cript 5cript released this 07 Jul 22:52
8f09398

What's Changed

Full Changelog: v0.15.2...v0.15.3

CMake Improvements and Dependency Updates

Choose a tag to compare

@5cript 5cript released this 07 Jul 03:22
718f252
  • Updated nlohmann_json to newer revision.
  • Some small CMake improvements.

v0.15.1 Fixed Bug in Reference Attribute

Choose a tag to compare

@5cript 5cript released this 12 Jun 21:34
0501f22

What's Changed

  • Fixed dangling reference to function. by @5cript in #110

Full Changelog: v0.15.0...v0.15.1

v0.15.0 Nui RPC in TS/JS

Choose a tag to compare

@5cript 5cript released this 31 May 13:15
513c50e

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

Choose a tag to compare

@5cript 5cript released this 10 Apr 21:18
a37f28d

What's Changed

  • Add support for tailwind css, added in: Feat/tailwindcss by @5cript in #108

Full Changelog: v0.13.1...v0.14.0

v0.13.1 Fixed clang 18 warnings

Choose a tag to compare

@5cript 5cript released this 06 Apr 14:21
0a964f8

What's Changed

Full Changelog: v0.13.0...v0.13.1

v0.13.0 Added Delocalized Element Utility

Choose a tag to compare

@5cript 5cript released this 25 Jan 16:16
e4a8146

Can now have an element change position across the dom from slot to slot.