munawwar / lithium-ui Goto Github PK
View Code? Open in Web Editor NEWA thin framework for building UI
A thin framework for building UI
Move away form KO templating syntax and make it more like React/Angular
So the following KO template:
<div class="box" data-bind="if: condition, attr: {title: title}, css: {rounded: isRounded}, style: {color: color}">
<!-- ko if: condition -->
<span data-bind="text: text"></span>
<!-- /ko -->
</div>
would become:
<div class="box" title={title} li-if="condition" li-class="rounded: isRounded" li-style="color: color">
{if: condition}
<span>{text}</span>
{/}
</div>
{/}
closes the if statement.
The aim is to not to have observables as functions. Instead one should be able to treat them like primitives.
The idea is that each component class would initialize observables.
To do that a class would need a special observable property:
component.name = Lui.extend('component.name', Lui.component, {
observables: ['total', 'list'],
total: 100,
list: ['apple', 'orange']
});
During class instantiation, Lui.Component would use Object.defineProperty() to add the observable for each property in 'observables' using setters and getters.
custom events exposed by components as different names (x-event)
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.