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 Platform has a new direction
Wed Aug 01 2018 13:46:17 GMT+0200 (CEST)
Total.js: Incubators, partners and sponsors
Wed Aug 01 2018 13:30:49 GMT+0200 (CEST)
Total.js v3.0.0
Wed Aug 01 2018 13:24:21 GMT+0200 (CEST)
Flow v5.1
Thu Jun 28 2018 19:22:41 GMT+0200 (CEST)
Total.js Dashboard v6.0
Mon Apr 23 2018 16:05:59 GMT+0200 (CEST)

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)
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)

Pixabay

Read more

Total.js Platform has a new direction

Business: We have changed the direction for Total.js platform. Currently all Total.js premium products are free.

Wed Aug 01 2018 13:46:17 GMT+0200 (CEST)
Total.js: Incubators, partners and sponsors

Business: We are looking for new partners, sponsors and incubators which can help us to grow!

Wed Aug 01 2018 13:30:49 GMT+0200 (CEST)
Total.js v3.0.0

News: I have released a new version of Total.js framework. New version brings two awesome features and a lot of improvements.

Wed Aug 01 2018 13:24:21 GMT+0200 (CEST)
Flow v5.1

News: This version of Flow brings three new great features and small UI improvements.

Thu Jun 28 2018 19:22:41 GMT+0200 (CEST)
Total.js Dashboard v6.0

Products: I have published a new version of Dashboard. New version brings new improvements and features.

Mon Apr 23 2018 16:05:59 GMT+0200 (CEST)
Flow v5.0.0

News: I have released a new version of Total.js Flow v5.0.0 with great new features and improvements.

Mon Apr 16 2018 12:32:11 GMT+0200 (CEST)