Gate

An ISLE component that allows to display its children only to reserved audiences.

Example:

<Gate 
    banner={"<div>You have to be logged in to see the content</div>"}
    user 
>
    <h1>For users only</div>
</Gate>

Open interactive preview

Options:

  • anonymous | boolean: when set the gated content is displayed to anybody. Default: false.
  • user | boolean: when set the gated content is displayed to subscribed users. Default: false.
  • enrolled | boolean: when set the gated content is displayed to the students enrolled in the course. Default: false.
  • owner | boolean: when set the gated content is displayed to the owner of the course (usually the instructor). Default: false.
  • banner | node: a message which is visible to the visitors lacking the gate privilege. Default: none.
  • disabled | boolean: if a gate is disabled, the banner will be displayed no matter what. Default: false.

results matching ""

    No results matching ""