Sencha Ext JS 7.7 is Here – Discover What’s New and Exciting – LEARN MORE

Ext JS Customer Spotlight: BlockMate

February 6, 2018 0 Views

BlockMate was borne out of a research project on blockchains. The nascent blockchain technology has attracted an explosion in the development of blockchain platforms and is driving a demand from businesses and developers alike, who are eager to understand and build systems using these blockchain platforms. However, there is a lack of tailored solutions to assist developers to quickly learn the complexities and differences to make use of the blockchain platforms.

The BlockMate web application is designed to start meeting this need and supports one of the industry leading blockchain platforms called MultiChain. BlockMate provides a GUI interface, interactive web-based tutorials, interactive documentation and much more for managing the MultiChain blockchain, all of which will make development faster, easier and better.

The BlockMate application’s “look and feel” is the familiar “desktop” view – inside a browser!

The BlockMate application’s “look and feel” is the familiar “desktop” view – inside a browser!

BlockMate was released at the beginning of December 2017, is freely available and within its first six weeks has received visitors from over sixty (60) countries.

Why We Chose Ext JS

We wanted to produce a highly productive web application, which would be professional, feature rich, intuitive and comparable to similar tools that are typically found in native applications used to administer database systems. Some of the key functionalities the application needs to provide are:

  • open and interact with multiple windows
  • ability to easily drag and drop data between windows
  • synchronise window views with updated data
  • present data using tabular and hierarchical formats
  • display metadata according to attribute types contained in the data
  • create customized and reusable components

Having used Sencha Ext JS from v2.0 (for over ten years), these are the types of functionalities that the Sencha Ext JS framework was created to deliver – rich internet applications (RIA). Sencha Ext JS is (still) the only available framework that provides such powerful functionality and components – working seamlessly together – straight out of the box!

The following screenshots illustrate the various Sencha Ext JS components that are used to develop the “look and feel” of the BlockMate application.

Desktop view showing multiple windows (Ext.window.Window) and (Ext.WindowManager)

Desktop view showing multiple windows (Ext.window.Window) opened. Sencha window manager class (Ext.WindowManager) handles the opening and closing of the windows. Windows can be re-positioned, resized, maximised and minimised. The window in the forefront on the left, shows a list of API commands using the Ext.view.View component. The window in the top right, shows a list of wallet addresses using the Ext.grid.panel component.

The drag and drop (Ext.dd.DragDrop) feature

The drag and drop (Ext.dd.DragDrop) feature is use to “drag” data from one (source) window and “drop” it into the other (target) window.

Tree structure (Ext.tree.Panel)

Tree structure (Ext.tree.Panel ) use to show the transaction details stored in a block. Also featured is a floating toolbar with “drop down” nested menu items (Ext.menu.Menu).

The Create Multisig Address window uses several Sencha components to present its functionality.

The Create Multisig Address window uses several Sencha components to present its functionality. The window has a multi-pane layout (Ext.layout.container.Border) and nested in that is a four-page wizard layout (Ext.layout.container.Card). In addition, there is a customised checkbox component, which can be toggled ON or OFF, which also has a “change state” indicator.

New custom Search component with built-in next / previous functionality, created from the base class, Ext.Component.

New custom Search component with built-in next / previous functionality, created from the base class, Ext.Component.

Business Value of Using Ext JS

At this relatively early stage in blockchain development, we aim to set a high standard in the quality of web applications available to the blockchain developer community. Sencha Ext JS enables us to achieve our key objective and make it difficult for other competitors / new entrants, who will need to exceed and “raise the bar” we have set. Of course, with Ext JS as the foundation, we are confident that we will always be able to respond quickly, innovate and deliver to keep our advantage and maintain our leading position.

Furthermore, with the introduction of building universal applications, Sencha Ext JS will play a fundamental part of our future success, as it will be even easier and faster to manage and deploy our application to suit any end-user device, from a shared and single code base.

Our Advice for New Developers

  • As a developer, your first question will be “what can this framework do for me?” and for Sencha, your first port of call should be the Kitchen Sink application that will provide a comprehensive overview of the building blocks (components) available in Sencha. The Kitchen Sink demonstrates how each component is rendered and provides the JavaScript code which shows how easy it is to configure and use the components…you’ll be wowed – guaranteed!
  • Sencha online guides and API documentation are second to none and you will be consulting them daily…so bookmark them! In addition, register to the support forum.
  • When developing your application, it’s important to get the best from the framework and as a new developer, there will be a learning curve. The Sencha framework is built on solid component based design practices and patterns (Gang of four) and if you have a background in languages such as C++, C#, Delphi or Java it should be easier to grasp the “Sencha way”. If needed, read tutorials on object and event based programming to speed up your understanding of the Sencha approach to develop the best web application you can.
  • Remember Sencha is a complete framework and you should not need to rely on any additional “third party” libraries for your development needs such as DOM manipulation, templating, handling server requests and responses, data storage, event handling, routing, deep linking, browser history, date parsing functions.
  • Don’t be afraid to delve into the actual framework source code. In fact, I strongly recommend it, as you will learn the framework quicker and appreciate the amount of “heavy-lifting” such as cross-browser support, DOM creation, and event handling that Sencha is automatically providing. You will also learn how to “work with” the framework and get even more out of it.
  • Sencha developers are some of the best in the world, they have to be “at the top of their game” to satisfy the demand from its large customer base requirements – features, performance and consistent behaviour across browsers. Again, have a look at the framework source code. This will help you improve your development technique, problem solving approach and produce cleaner code which will be easier to debug and maintain.
  • When the need arises to create a customised component, Sencha is easily extendible. You will need to decide whether you should extend an existing component, create a new component, or create a plugin. To help with your decision look at the many existing user extended (ux) components and plugins. Familiarise yourself with Sencha’s advanced templating class, Ext.XTemplate, as it’s used to render 99% of the UI components. Below is an example of a custom form field with excerpt of the templating code it uses.
Custom form field using Sencha templating to display an icon after the field label and a trigger icon after the field value.

Custom form field using Sencha templating to display an icon after the field label and a trigger icon after the field value.

Ext.define(‘BlockMate.ux.field.text.Uneditable’, {
extend: ‘Ext.form.field.Text’,
alias: ‘widget.uneditablefield’,

preSubTpl : [

‘,
{$}=”{.}”‘,
‘,
‘ role=”presentation”‘,
‘,
‘ class=”{triggerWrapCls} {triggerWrapCls}-{ui} ux-uneditable”>’,

Leave a Reply

Your email address will not be published. Required fields are marked *

Leave a Reply

Your email address will not be published. Required fields are marked *

coming soon

Something Awesome Is

COMING SOON!