IDLeDOM
DOM interfaces automatically generated from WebIDL
Loading...
Searching...
No Matches
Wikimedia\IDLeDOM\SelectionMode Class Reference

SelectionMode. More...

Static Public Member Functions

static string cast (string $value)
 Throw a TypeError if the provided string is not a valid member of this enumeration.
 

Public Attributes

const select = 'select'
 
const start = 'start'
 
const end = 'end'
 
const preserve = 'preserve'
 

Detailed Description

SelectionMode.

See also
https://dom.spec.whatwg.org/#enumdef-selectionmode

-forbid-undeclared-magic-properties

Member Function Documentation

◆ cast()

static string Wikimedia\IDLeDOM\SelectionMode::cast ( string $value)
static

Throw a TypeError if the provided string is not a valid member of this enumeration.

Parameters
string$valueThe string to test
Returns
string The provided string, if it is valid
Exceptions

Wikimedia\IDLeDOM\TypeError if it is not valid


The documentation for this class was generated from the following file: