DataFunction Class
Binds to the prime context data of this node.
Behaviors like With, Each, and Instance introduce a prime data context for their children. JavaScript and the Model
tag do not introduce a prime data context.
Use data()
when you wish to bind directly to the prime data context. This is for when your data contains a simple value rather than a data structure.
<JavaScript>
exports.items = Observable(1,2,3)
</JavaScript>
<Each Items="{items}">
<Text Value="{= data() }"/>
</Each>
Location
- Namespace
- Fuse.Reactive
- Package
- Fuse.Reactive.Bindings 2.9.1
Interface of DataFunction
Inherited from Expression
SourceFileName : string ux
hide
SourceLineNumber : int ux
hide
Subscribe(IContext, IListener) : IDisposable uno
See IExpression.Subscribe
for docs.
Inherited from object
Equals(object) : bool uno
GetHashCode : int uno
GetType : Type uno
ToString : string uno
Attached UX Attributes
GlobalKey (attached by Resource) : string ux
Implemented Interfaces
IExpression uno
ISourceLocation uno
hide