Blaze.Unless

Client

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

import { Blaze } from 'meteor/blaze' Source

An inverted Blaze.If.

Arguments

conditionFunc Function

A function to reactively re-run. If the result is falsy, contentFunc is shown, otherwise 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:18:01
Comments
Leave a Comment

Please login to continue.