conditionalform

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionalForm

type ConditionalForm struct {
	runtime.ComponentBase

	Name    string
	HasName bool
}

ConditionalForm is a minimal test component that mirrors the FormsPage "Live Preview" pattern: when HasName is true a live-preview block is shown; when it is false a muted placeholder is shown instead.

This component exists specifically to exercise the VNode conditional (if/else) rendering path and the type-then-clear regression where clearing the input failed to restore the muted placeholder in the DOM.

func (*ConditionalForm) SetName

func (c *ConditionalForm) SetName(name string)

SetName simulates a user typing into the name input field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL