tradejmark / jbind Goto Github PK
View Code? Open in Web Editor NEWA lightweight library for binding HTML element text and attributes to values supplied by Kotlin/JS code
License: MIT License
A lightweight library for binding HTML element text and attributes to values supplied by Kotlin/JS code
License: MIT License
This is so that if your client provider is basically just shunting the providing off to a server, the transformations can happen server-side.
Would be kind of cool if you could access the library from JS. I think I would want to make some sort of mapping between Flows and web workers, but it's probably possible.
Say the content you want to bind to the text of an element is supposed to have a link in it. Now what? You make a separate bind for the link? What if you want to remove the link without altering the static HTML you're serving, because the link is essentially content and not structure? And what about the text that comes after the link? How do you represent that? This library just doesn't much work at all for scenarios like this right now. This functionality is mainly to allow you to, for example, process the provided value as Markdown and produce an HTML element to inject into the parent's content, which would really solve this. It also adds interesting potential for scenarios like decrypting values if users have permissions to view them.
Decryption was an example of functionality that I could think of for Transformations, and I think it's a nice-to-have to offer a default one.
This would bind all values associated with a particular element to associated attributes. A deserializer will also be provided to recover the object given the element (potentially useful from within a web component, for example).
This will allow for arrays, where children of an array parent are bound relative to the array child of the same index.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.