Blaze.If

Client

Blaze.If(conditionFunc, contentFunc, [elseFunc])

import { Blaze } from 'meteor/blaze' Source

Constructs a View that renders content conditionally.

Arguments

conditionFunc Function

A function to reactively re-run. Whether the result is truthy or falsy determines whether contentFunc or elseFunc is shown. An empty array is considered falsy.

contentFunc Function

A Function that returns renderable content.

elseFunc Function

Optional. A Function that returns renderable content. If no elseFunc is supplied, no content is shown in the "else" case.

doc_Meteor
2016-05-29 17:17:59
Comments
Leave a Comment

Please login to continue.