Skip to main content

Option

The Option class represents a single option instance for select, radio, or checkbox fields. It contains all option configuration including label, value, selected state, and metadata.

Namespace

JobMetric\CustomField\Option\Option

Overview

The Option class is the result of building an option with OptionBuilder. It contains all the option configuration and is used internally by fields to render option elements.

Properties

Label

public string $label;

The option label text.

Value

public string|int|bool $value;

The option value.

Selected

public bool $selected;

Whether the option is selected.

Description

public string $description;

Option description text.

Meta Info

public string $metaInfo;

Meta information for the option.

Extra Content

public string $extraContent;

Extra HTML content for the option.

Tag

public string $tag;

Option tag identifier.