JavaScript for Line of Business Applications
596.1K views | +0 today
Follow
JavaScript for Line of Business Applications
Keeping track of current JavaScript Frameworks that help design your clientside Business Logic Layers.
Curated by Jan Hesse
Beam to my Inbox:
Your new post is loading...
Your new post is loading...

Popular Tags - Filter using the Funnel

Current selected tag: 'WebComponents'. Clear
Scoop.it!

Towards atomic AngularJS components with Browserify

Towards atomic AngularJS components with Browserify | JavaScript for Line of Business Applications | Scoop.it

When I read Atomic Product Development a few weeks ago, it was a lightbulb moment for me. It managed to finally put words (and code!) to the handful of loose ideas that had been rattling around my head for the better part of a year. I've started contributing to the project, and you'll undoubtedly hear more about it from me in the future, but I thought it might be helpful to first show a basic application of the concepts to AngularJS.
The atomify projects (specifically atomify-js and atomify-css) were not created with frameworks like AngularJS in mind. If you take a look at the atomify-example, you can see it's more like Backbone or vanilla JS, but the principles and underlying tools are universally appealing.

Therefore, the challenge I've spent the last couple of weeks solving is how to utilize that foundation in the context of AngularJS. As it turns out, it's actually pretty simple.

No comment yet.
Scoop.it!

Real World Web components

a.k.a. Web Components outside of Google

* Templates

* Custom Elements

* Shadow DOM

* HTML Imports

* (and more…)

No comment yet.
Scoop.it!

Inheritance with Ember.js components

Inheritance with Ember.js components | JavaScript for Line of Business Applications | Scoop.it
How to use Ember.js components in general and how to re-use them through inheritance to extend certain behaviour without repeating yourself.

One of the nicest things about Ember.js are components. It’s very easy to create reusable, self-contained components. But reusable doesn’t just mean to reuse the component throughout an application, it also means to extend such a component. Due to Ember’s inheritance model it’s pretty straight forward to extend an existing component to inherit behaviour and add new logic. 

No comment yet.
Scoop.it!

Integrating jQuery Chosen plugin with EmberJS and Bootstrap

Integrating jQuery Chosen plugin with EmberJS and Bootstrap | JavaScript for Line of Business Applications | Scoop.it

I would like to show you how Chosen can be quickly integrated into your EmberJs application together with Twitter Bootstrap.

I’m currently working on web application. We use JavaScript MVC web framework called EmberJs. It is very cool framework, and I will write about it more in the future. Ember has small set of views and input-helpers. Just using them is not always enough to build solid and rich application. Fortunately there are tons of controls available online, and it is quite easy to write your own controls with Ember.

Most of online available controls/plugins are based on jQuery (no surprises, of course) and they use plain javascript objects. Ember wraps javascript objects into Ember.Object, so it allows for data binding, data tracking and other advanced features, but on other hand it makes impossible to use vast majority of web components right away. You need to adapt them in order to to use them with Ember.

Having component created with Ember would result in application-specific html-tag, that would use JavaScript logic defined by you. Something like: <my-own-html-tag… that does and shows what you want.

Chosen. One of the controls we wanted to use was Chosen. “Chosen is a jQuery plugin that makes long, unwieldy select boxes much more user-friendly.” It allows you to have nice multi-selects that look like one below:

No comment yet.
Scoop.it!

ES6 modules and EmberJS : a taste of the future

ES6 modules and EmberJS : a taste of the future | JavaScript for Line of Business Applications | Scoop.it

A quick walk throught the fresh ES6 modules spec coupled with the front MVC framework EmberJS.

The ES.current as we know it doesn’t feature a standardized module system, you cannot require some fragment of code inside another fragment of code and use it while being inside a namespace (and not a global). AMD and CommonJS came along and proposed two impressive yet incompatible solutions to let developers use modules (AMD is mostly used in the browser, while CommonJS is more used server-side). The new ES6 modules spec aims at solving this module problem and also let ES6 modules transpile to both AMD and CommonJS as a polyfill.

The ES6 modules spec is done and will not change before the ES6 specs release, we can now use it and feel safe about the new semantic we learn.

Jan Hesse's insight:

http://thau.me/2013/12/es6-modules-and-emberjs-a-taste-of-the-future-part-2/

No comment yet.
Scoop.it!

Web Components / Shadow DOM

Building blocks of Web Components:

Shadow DOM

* DOM & style encapsulation

Custom Elements

* Create new HTML elements, extend existing DOM objects

HTML Imports

* Package and Share HTML/CSS/JS.

No comment yet.
Scoop.it!

A Guide to Web Components

A Guide to Web Components | JavaScript for Line of Business Applications | Scoop.it

Recently I was working with a client to train their internal teams on how to build web applications. During this process it occurred to me that the way we presently architect the front-end is very strange and even a bit broken. In many instances you’re either copying huge chunks of HTML out of some doc and then pasting that into your app (Bootstrap, Foundation, etc.), or you’re sprinkling the page with jQuery plugins which have to be configured using JavaScript . It puts us in the rather unfortunate position of having to choose between bloated HTML or mysterious HTML, and often we choose both.

In an ideal scenario, the HTML language would be expressive enough to create complex UI widgets and also extensible so that we, the developers, could fill in any gaps with our own tags. Today, this is finally possible through a new set of standards called Web Components.

No comment yet.
Scoop.it!

Open Source EmberJS Component from Addepar

Open Source EmberJS Component from Addepar | JavaScript for Line of Business Applications | Scoop.it

* Ember Table: allows you to render very large data sets by only rendering the rows that are being displayed.
It is written as an ember component with an API that is easy to understand and extend.

* Ember Widgets: a component library which includes easy to extend components such as select, popover, modal, carousel, and accordion. This library is built on bootstrap 3.0 CSS and represents our ideas about component best practices.

* Ember Charts: a charting library built with d3.js framework. It includes time series, bar, pie, and scatter charts which are easy to extend and modify. The out-of-the-box behavior these chart components represents our thoughts on best practices in chart interactivity and presentation.

No comment yet.
Scoop.it!

ember-component-library-template: Get started building your own custom components for Ember

ember-component-library-template: Get started building your own custom components for Ember | JavaScript for Line of Business Applications | Scoop.it

This template provides you with the basic project structure, build configuration and instructions to build your own custom component libraries for Ember.

With Ember Components now available, we wanted to create a simple template for creating component libraries. Component libraries can be built to wrap non-ember Javascript components, extend the functionality of Ember Views, and provide collections of controls which have some common/shared interaction.

However, if you want to reuse your components between projects, you’ll need to extract your components into a distinct project, and have enough build infrastructure in place so that your library can be built, exported and made accessible by dependent applications. We scoured for an existing minimal template to provide this structure, but could not find it, so we built a barebones version ourselves.

No comment yet.
Scoop.it!

Web Components are the Revolution

Within this talk:

* Web Components?

1. CREATE YOUR OWN HTML ELEMENTS

2. ENCAPSULATE YOUR STYLES

3. REACT WITH LIFECYCLE CALLBACKS

 

* The Specs

1. TEMPLATES - Scaffolding

2. SHADOW DOM - Encapsulation

3. CUSTOM ELEMENTS - Extensions

4. IMPORTS - Packaging

 

* Use 'em, Today!

 1. POLYMER

No comment yet.
Scoop.it!

Lucuma - A Web Components library for ClojureScript

Lucuma - A Web Components library for ClojureScript | JavaScript for Line of Business Applications | Scoop.it

At its core lucuma helps with creating custom HTML tag elements (Web Component) encapsulating content, style and logic. It is not a fancy MV* framework and aims at being a thin layer building on top of next generation web standards (mainly Custom Elements and Shadow DOM). 

It also makes the extra effort of being flexible and open to existing ClojureScript standards and libraries.

Lucuma is conceptually similar to polymer, x-tags or Polymer.dart.

No comment yet.
Scoop.it!

Getting started with web components and polymer.js - II

Getting started with web components and polymer.js - II | JavaScript for Line of Business Applications | Scoop.it

This article describes still rarely supported Shadow DOM features. 

This article will describe things to improve the checkbox component, that got built up in the last article. By improving I mean making the web component more configurable and making it stylable from the “outside”. Additionally it will cover some mistakes that were made in first place, but let us just dive into it. ;)

No comment yet.
Scoop.it!

The Future of AngularJS

The Future of AngularJS | JavaScript for Line of Business Applications | Scoop.it

Brian Ford shows the use of ES6 Modules and Web Components used by templates in AngularJS. Also it is shown how object.Observe could replace $apply.

No comment yet.
Scoop.it!

Web Components Can Do That?!

Web Components Can Do That?! | JavaScript for Line of Business Applications | Scoop.it

A session at London JS Conf by Addy Osmani.

No comment yet.
Scoop.it!

Building An Email List Component With BackboneJS

Building An Email List Component With BackboneJS | JavaScript for Line of Business Applications | Scoop.it

A typical email app has several distinct areas of the application’s screen. There is a list of categories or labels, a list of email to show for a given mail box, a search or filter box, and an individual email view, for example. Each of these – and likely additional areas of functionality on the screen – can be composed in to small workflow objects as components of the larger email work flow.

The classic example of Gmail illustrates all of these basic components, and many more...

No comment yet.
Scoop.it!

Frontend components in React

Frontend components in React | JavaScript for Line of Business Applications | Scoop.it

Last week I made a presentation for meet.js PL about React. meet.js is a free front-end meetup organized by web enthusiasts in 6 major Polish cities - Warsaw, Gdańsk, Poznań, Wrocław, Cracow and Katowice.

In a nutshell, I presented why we chose React among other available options (ember.js, angular, backbone ...) in AgFlow, where I’m leading an application development.

Also I try to highlight some problems with MVC pattern everywhere.

I really like a way of React frontend components development. It makes more clear for us to implement use cases views.

Enjoy! 

No comment yet.
Scoop.it!

Ember Reusable Components and Widgets

Ember Reusable Components and Widgets | JavaScript for Line of Business Applications | Scoop.it
Sergey Bolshchikov discusses building complex UIs with Ember.js by combining Handlebars templates and Ember.View.
No comment yet.
Scoop.it!

Ember.js Components, Wrapping Content and Context

Ember.js Components, Wrapping Content and Context | JavaScript for Line of Business Applications | Scoop.it

I have created this ember.js component that allows a user to hook up a data source that can be filtered via user input and then added to a destination...

You have most likely used something similar when you have been adding tags to some sort of entity.

The component is declared using the hyphonated convention like this...

No comment yet.
Scoop.it!

Web Components: Why You're Already An Expert

Web Components: Why You're Already An Expert | JavaScript for Line of Business Applications | Scoop.it

Web Components are going to fundamentally change the nature of HTML.

At first glance, they may seem like a complicated set of new technologies, but Web Components are built around a simple premise. Developers should be free to act like browser vendors, extending the vocabulary of HTML itself.

If you’re intimidated by these new technologies or haven’t experimented with them yet, this post has a very simple message for you. If you’re already familiar with HTML elements and DOM APIs, you are already an expert at Web Components.

Jan Hesse's insight:

http://markdalgleish.github.io/presentation-web-components/

No comment yet.
Scoop.it!

Twitter Bootstrap 3 – JavaScript Components

Twitter Bootstrap 3 – JavaScript Components | JavaScript for Line of Business Applications | Scoop.it
Twitter Bootstrap happens to be the easiest and the best CSS framework on the Internet today. It allows developers with no CSS knowledge to build basic templates without any efforts. But this doesn’t stop designers from using Bootstrap.
No comment yet.
Scoop.it!

Web Components - Why you're already an expert

Why you're already an expert:

* Custom Elements

* Shadow DOM

* Template Element

* HTML Imports

* CSS Decorators

 

* Simple

* Consistent

* Reusable

* Encapsulated

* Composable

 

* Polymer Elements

* Polymer UI Elements

* Brick

* X-Tag Registry

Jan Hesse's insight:

http://markdalgleish.com/2013/11/web-components-why-youre-already-an-expert/

No comment yet.
Scoop.it!

Create a Custom Select Box using Ember.Component

This tutorial steps over an useful example of creating a custom select box that can look as custom as your designer would like. I’ve often been asked to customize the browsers components by designers, especially the dropdown/select element. A friend, ultmast, gave me a simple solution which meets both my interest of not entirely re-inventing the wheel (select box behaviors) and also showing a completely customized select element. Simply set the select box’s opacity to zero and position the invisble select box directly over the element that has custom design using css, images or whatever. Then when user click to select the invisible select box behavior takes over, only one binding from the invisible element to the custom element is the selected option (choice).

No comment yet.
Scoop.it!

Building a tag editor with Ember.js

Building a tag editor with Ember.js | JavaScript for Line of Business Applications | Scoop.it

I’m often still amazed at just how well Ember deals with complexity.

Ember Components are one of many reasons for this, they very neatly allow us to create decoupled views which can be reused throughout our application. Below tag editor component which consists of 30 lines of clean JavaScript. (view the source on jsbin)

No comment yet.
Scoop.it!

Ember Components – Reusable Building Blocks For Your Application

Ember Components – Reusable Building Blocks For Your Application | JavaScript for Line of Business Applications | Scoop.it

Web components promise to bring reusability and encapsulation to the next version of JavaScript. The bad news is that their power is out of reach until mainstream browsers fully implement the ECMAScript 6 standards that make up web components. Fortunately for Ember.js developers, the power of web components can be leveraged today in the form of Ember components. Ember components share more than a similar name with Web Components, they aim to adhere as closely to the W3C Web Component spec as possible.

In this article, I’ll show you how to use Ember components to build a reusable building block for a scrum card management application. For those of you who have never used Ember before, don’t worry, we’ll also cover some of the basics of Ember.js that you need to know.

No comment yet.
Scoop.it!

Creating a Markdown Tag with Polymer

Creating a Markdown Tag with Polymer | JavaScript for Line of Business Applications | Scoop.it

Ah Markdown… Such an amazing tool. I honestly would not be writing this blog post if Markdown did not exist. I tried many times to get in to blogging but I always found the writing experience, whether it be in a GUI or WordPress’ HTML mode, too limiting. Markdown changed all of that for me and I think it’s high time we make it a full fledged member of our developer toolbox.

So today I’m going to show you how to build a Markdown tag using Polymer, a Web Components framework from Google.

No comment yet.