Skip to main content

Gate

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

Options

  • user | boolean: when set the gated content is displayed to users. Default: false.
  • notUser | boolean: when set the gated content is not displayed to users. Default: false.
  • enrolled | boolean: when set the gated content is displayed to the students enrolled in the course. Default: false.
  • notEnrolled | boolean: when set the gated content is not 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.
  • notOwner | boolean: when set the gated content is not displayed to the owner of the course (usually the instructor). Default: false.
  • after | Date: time after which the contents of the gate should become visible. Default: none.
  • until | Date: time until the contents of the gate should remain visible. Default: none.
  • banner | node: a custom message which is displayed to visitors for whom the gate's children are not visible instead of the default one. Default: none.
  • disabled | boolean: if a gate is disabled, the banner will be displayed no matter what. Default: false.
  • showOwnerInPresentationMode | boolean: controls whether to show gate contents in presentation mode when gate is visible for owners. Default: true.
  • check | function: callback function returning a boolean indicating whether gate should display child components; the function is invoked whenever session actions arrive. Default: none.

Examples

Live Editor
Result
ReferenceError: Provider is not defined