function showWhenBuilder()
Creates a view builder for a conditional view renderer.
function showWhenBuilder(
condition: BindingOrValue<any>,
content?: ViewBuilder | (() => ViewBuilder),
elseContent?: ViewBuilder,
): ShowBuilder;
Parameters
- condition — A boolean value or binding that determines when to show the content.
- content — A view builder for the content to show/hide (alternatively, use
.show()method)
Return value
A builder object for configuring the show view.
Related
class UIShowView
A view object that renders and controls a referenced view.class UIShowView
A view object that renders and controls a referenced view.
