Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 3.43 KB

core_attribute_reference.md

File metadata and controls

45 lines (35 loc) · 3.43 KB

HAPEL Parameter Reference


The following table references all variable names and types used when creating an html node.

Common Parameters

These parameters are common to the majority of HAPEL methods.

Parameter Valid Types Required Default Use
$child null/bool/string yes false The child content for the element.
$class null/array/string no null The class(es) for the element.
$id null/string no null The id for the element.
$style null/array/string no null The style(s) for the element.
$data null/array no null The data attribute(s) for the element.
$attr null/array/string no null Any additional attributes for the element.

Special Case Parameters

These parameters are only used on specific HAPEL methods.

Parameter Valid Types Required Default Use
$action null/string no null
$alt null/string no null Sets the alt attribute.
$caption null/string no null
$content string yes The content attribute.
$href null/string no
$lang null/string yes 'en' The language attribute.
$max null/string no varies Sets the max attribute.
$method null/string no null
$min null/string no varies Sets the alt attribute.
$name string yes The name attribute.
$rel null/string no null
$required bool no false
$src null/string no
$srcset array yes
$title null/string no null Sets the title attribute.
$type null/string no varies Sets the type attribute.
$value null/string no null

(!) Varies based on method. Check method documentation for default value.