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 image</div>"}
    user 
>
    <h1>For teachers only</div>
</Gate>

Open interactive preview

Options:

  • anonymous: when set the gated content is displayed to anybody
  • user: when set the gated content is displayed to subscribed users.
  • enrolled: when set the gated content is displayed to the students enrolled in the course
  • owner: when set the gated content is displayed to the owner of the course (usually the instructor)
  • banner: a message which is visible to the visitors lacking the gate privilege

results matching ""

    No results matching ""