jComponent v14

Tue Jan 16 2018 22:31:59 GMT+0100 (CET), Peter Širka

Reusable UI: jComponent v14

jComponent is aswesome client-side library for creating reusable JavaScript UI components. It's primary targeted for creating single page applications (SPA). New version 14 brings really great improvements.

New improvements

  • improved stability
  • improved performance
  • improved controllers and scopes
  • improved compilation

New documentation

I have created a new jComponent documentation on Total.js Wiki. It's not completed, but I'll add missing things step-by-step.

New documenation

New componentator

I have re-designed portal and now the portal supports real-time code modification of selected components like JS Fiddle. Componentator contains more than 100 jComponents and components are still growing.

New componentator

Versioning

This version brings killer feature: versioning UI components. You can define same components in different version. For more info read jComponent documentation.

Declaration:

COMPONENT('textbox', function(self, config) {
    self.make = function() {
        console.log('textbox');
    };
});

COMPONENT('textbox@1', function(self, config) {
    self.make = function() {
        console.log('textbox v1');
    };
});

COMPONENT('textbox@2', function(self, config) {
    self.make = function() {
        console.log('textbox v2');
    };
});

// Or multiple version at once
COMPONENT('textbox, textbox@1, textbox@2', function(self, config) {
    self.make = function() {
        console.log('3 versions of textbox');
    };
});

Usage:

<!-- MAIN VERSION -->
<div data-jc="textbox"></div>

<!-- VERSION 1 -->
<div data-jc="textbox@1"></div>

<!-- VERSION 2 -->
<div data-jc="textbox@2"></div>

<script>
    // Travelsing for all version
    SETTER('textbox', 'setter', 'test');

    // Travelsing for version 1
    SETTER('textbox@1', 'setter', 'test');

    // Travelsing for version 2
    SETTER('textbox@2', 'setter', 'test');
</script>

All components on CDN

I have prepared CDN with all components. So you can import components which you are really need. Components are always up-to-date and they are stored under different versions.

You can change repository to own:

// Default URL for fallback:
DEF.fallback = 'https://cdn.componentator.com/j-{0}.html';

New CDN

I have created a new CDN for jComponent and UI components registered on KeyCDN. For long term projects are prepared stable versions of components and main library:

I recommend to use specific versions:

// Sets this version for all components
DEF.version = '1';

// or you can specify version for each component like this:
VERSION('textbox@1', 'dropdown@3', 'textarea@2');

Good to know

jComponent library and www.componentator.com is a part of Total.js platform. Buy a premium account and support this great JavaScript's platform.


Tags

Follow us

Latest blogs
Total.js Dashboard v6.0
Mon Apr 23 2018 16:05:59 GMT+0200 (CEST)
Flow v5.0.0
Mon Apr 16 2018 12:32:11 GMT+0200 (CEST)
REST Azure DocumentDB in Node.js / Total.js
Mon Mar 26 2018 09:38:41 GMT+0200 (CEST)
How do I transform ErrorBuilder output?
Mon Jan 29 2018 09:22:49 GMT+0100 (CET)
Flow: REST API components
Mon Jan 22 2018 10:11:14 GMT+0100 (CET)

Latest comments
Not only for Total.js. You can communicate with different websocket servers.
Peter Širka
Mon Apr 23 2018 20:08:20 GMT+0200 (CEST)
hellow every one
umar
Sun Apr 22 2018 10:05:35 GMT+0200 (CEST)
hehehshshshshdhsd
Amaury
Sat Mar 24 2018 19:46:54 GMT+0100 (CET)
asdasd
getrgerg
Tue Mar 20 2018 15:07:31 GMT+0100 (CET)
Is WEBSOCKETCLIENT only for internal ws connections between totaljs apps?
Stelios Stephanua
Fri Mar 16 2018 06:04:22 GMT+0100 (CET)
Total.js is amazing! ;)
Leonardo Hessel
Tue Dec 19 2017 19:51:15 GMT+0100 (CET)
It's easy, just set e.g. `res.status = 404`.
Peter
Thu Nov 16 2017 07:54:11 GMT+0100 (CET)
Yes, it's valid.
Peter
Thu Nov 16 2017 07:53:06 GMT+0100 (CET)
How do we set the status code in custome middleware?
Nabeel
Mon Oct 02 2017 10:31:40 GMT+0200 (CEST)
Node... Awesome applications.
oscar
Thu Aug 31 2017 02:21:59 GMT+0200 (CEST)
Awesome!
Tema
Wed May 10 2017 06:33:13 GMT+0200 (CEST)
Awesome, thanks!
Tema
Tue May 02 2017 14:13:03 GMT+0200 (CEST)