Remove the given class (or classes) from this Inputfield
Example
// Remove the "foo" class
$inputfield->removeClass('foo');
// Remove both the "foo" and "bar" classes (since 3.0.16)
$inputfield->removeClass('foo bar');
// Remove the "bar" class from the wrapping .Inputfield element
$inputfield->removeClass('bar', 'wrapClass');
Usage
// basic usage
$inputfield->removeClass($class);
// usage with all arguments
$inputfield->removeClass($class, string $property = 'class');
Arguments
Name | Type(s) | Description |
---|---|---|
class | string, array | Class name you want to remove or specify one of the following:
|
property (optional) | string | Optionally specify the property you want to remove class from:
|
Return value
$this
Object instance it was called from (method supports fluent interface).
See Also
Inputfield methods and properties
API reference based on ProcessWire core version 3.0.236