Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 451 Bytes

data.md

File metadata and controls

24 lines (17 loc) · 451 Bytes

HAPEL Method Parameters


$data

(null|array), (optional), default: null

Sets the data attribute for the tag.

Value Use
null prevents the attribute from being added to the tag
array adds each item in the array as an attribute value

Examples:

Using an array:
$data = array('name'=>'felix','animal'=>'cat');
<tag data-name="felix" data-animal="cat" {...}