JonoM\SilverStripeTextTargetLength\TextTargetLengthExtension::setTargetLength
Set a target character length for text in a field.
Signature
public function setTargetLength(Int
$idealCharCount,
[Int
$minCharCount = NULL,
[Int
$maxCharCount = NULL]] )
Parameters
$idealCharCount
—
object
- the ideal number of characters for this text
$minCharCount
—
object
- (default: null) the minimum number of characters for this text
$maxCharCount
—
object
- (default: null) the maximum number of characters for this text
Returns
- FormField