InputfieldSelect::addOptionsString()

Given a multi-line string, convert it to options, one per line

Lines preceded with a plus "+" are assumed selected, i.e. +option Lines with an equals sign are split into separate value and label, i.e. value=label

Usage

$inputfieldSelect->addOptionsString(string $value);

Arguments

NameType(s)Description
$valuestring

Return value

$this

Object instance it was called from (method supports fluent interface).


InputfieldSelect methods and properties

API reference based on ProcessWire core version 3.0.251