skatejs / types

[DEPRECATED] - Alternate binding types (e.g. attribute / classname) for SkateJS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[DEPRECATED] Binding types for SkateJS

PLEASE NOTE: Custom types have been deprecated and will not work in Skate 1.x+. They will continue to work in 0.x releases.

This repository contains binding types for SkateJS components. Included types are:

attribute

A binding for using attribute names to identify a component.

<div attribute-name></div>
skate('attribute-name', {
  type: skateTypes.attribute
});

Attributes are a great way to mix in functionality but lack the explicitness of tag names so only use them when you can't use tag names.

classname

A binding for using class names to identify a component.

<div class="class-name"></div>
skate('class-name', {
  type: skateTypes.classname
});

Class names are the least preferred method of binding behaviour to an element because classes are for styling, not behaviour. However, if you can't use tags or attributes for whatever reason, then this binding will allow you to use a class name.

About

[DEPRECATED] - Alternate binding types (e.g. attribute / classname) for SkateJS.

License:MIT License


Languages

Language:JavaScript 100.0%