-
Notifications
You must be signed in to change notification settings - Fork 0
0.3.0 Data
Ivan S Glazunov edited this page Feb 20, 2015
·
2 revisions
[new] T.Data() => this;
Array data managment from instance or static element.
Not intended for use immediately! Only inheritance!
data
Array<TData>;
Inherited when expanding with .extend.
Contains is not formatted TData array.
(...arguments: Array<TData>) => this;
Set ._data option.
Optimized way to write code in line.
var i = T.Data();
i.data(123).data(456);
i._data; // [456]
Static.
T.Data.data(123);
(...arguments: Array<TData>) => this;
Unshift to ._data option.
Optimized way to write code in line.
var i = T.Data();
i.prepend(123).prepend(456);
i._data; // [456, 123]
Static.
T.Data.prepend(123);
(...arguments: Array<TData>) => this;
Push to ._data option.
Optimized way to write code in line.
var i = T.Data();
i.append(123).append(456);
i._data; // [123, 456]
Static.
T.Data.append(123);
- TData: Renderer|sync|async|Mixin
- TCallback: (error, result) => void
- TSelector: string
- TInjector: () => void
- TAttributes: [name: string]: TData
- TContext: TData
Node.js:
var T = require('oswst');
Require.js:
define(['oswst'], function(T) {});
window
:
var T = window.oswst(_, async);
-
Templates
- .compile
- .include
- .render
- .renderContext
- .renderAttributes
- .renderSelector
- .sync
- .isSyncFunction
- .async
- .isAsyncFunction
- .Prototype()
- .Renderer > .Prototype
- .Data > .Renderer
- .data > .Data
- .Tag > .data
- .Single > .Tag
- .singles[string]
- .Double > .Tag
- .doubles[string]
- .Doctype > .Tag
- .doctypes[string]
- .xml > .Tag
- .Mixin > .Data
- .mixin > .Mixin
- .mixins[string]
- .Module > .Renderer
- .with