Virtual
Internal
Constructs a new component, validating that GOV.UK Frontend is supported
Optional
$root: ElementHTML element to use for component
Optional
config: ConfigurationTypeHTML element to use for component
Protected
$rootProtected
Returns the root element of the component
Protected
configProtected
Returns the root element of the component
Internal
Virtual
configOverride
Function which defines configuration overrides to prioritize properties from the root element's dataset.
It should take a subset of configuration as input and return a new configuration object with properties that should be overridden based on the root element's dataset. A Symbol is used for indexing to prevent conflicts.
Optional
param: ObjectNestedConfiguration object
return - Configuration object
Static
check
Base Component class
Centralises the behaviours shared by our components