Optional Chaining in Sciter Script
I am adding the subject to the script. Optional chaining is essentially this: var street = user.address && user.address.street; Note that user.address here is an optional object and to get safe...
View ArticleNative support of JSX in Sciter
This is all about JSX that is quite popular with React and other “virtual DOMers” like Vue, Mithril. JSX in brief Essentially JSX is a notation (or embeddable DSL if you wish) that allows to use XML...
View ArticleBuilt-in ReactJs in Sciter.
TL;DR: Sciter gets native implementation of ReactJs – you will not need any .js or .tis files in order to use React features. Browser’s way Consider this ES6 file from ReactJs tutorial: class Clock...
View ArticleReactor is getting shape.
Componentization For reactive components, script where they are defined should be the only source of truth. So components shall contain also style information so the engine will know how to style them...
View ArticleSciter 4.4.0.0 with Reactor on board
4.4.0.0 is published so you can download it. It contains Reactor features, please read about it here. Essentially this version adds just two things implemented natively: SSX – JSX alike script syntax...
View ArticlePlus framework: proper use of repeatables
Proper use of bound collection observed by @each or @repeat elements Bound collections Bound collections are arrays or objects placed inside namespaces bound with DOM: namespace Data { var...
View ArticleExtended C++ interface support in Sciter
If C++ would have reflection life will be a bit easier. It could be a breeze to add native functionality to Sciter using it – in particular to expose native objects to script. But no reflection in...
View ArticleNative code exposure to script
Mechanism of native code exposure is more or less finalized. In general the architecture is a mix of COM’s IUnknown/IDispatch and Objective-C message passing approaches. Basic idea is pretty simple and...
View Articleinclude library “name”– native extensions
Since version 4.4.3.24 Sciter support native loadable extensions. Native Sciter Extension (NSE) is a dynamically loadable library (.dll, .dylib, .so) that exports at least one function: BOOL SCAPI...
View ArticleEvent handling in Sciter
Event handling is a cornerstone of any UI application. And not only UI application, console application may also react on CTRL-C, LOGOFF and other events. For the note: Browsers and Sciter use...
View Article