Usage
Signature:
interface IfElement
Typescript Import Format
//To typecheck the element APIs, import as below.
import { IfElement } from "ojs/ojknockout";
//For the transpiled javascript to load the element's module, import as below
import "ojs/ojknockout";
For additional information visit:
Slots
JET components that allow child content support slots. Please see the slots section of the JET component overview doc for more information on allowed slot content and slot types.
-
Default
-
The
oj-if
default slot is used to specify content that will be rendered when the test condition evaluates to true.