* zin: add data-block attribute to blockPanel element.
This commit is contained in:
@@ -55,4 +55,12 @@ class blockPanel extends panel
|
||||
|
||||
$this->setDefaultProps($defaultProps);
|
||||
}
|
||||
|
||||
protected function buildProps(): array
|
||||
{
|
||||
$props = parent::buildProps();
|
||||
$name = $this->prop('name');
|
||||
if(!empty($name)) $props[] = setData('block', $name);
|
||||
return $props;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user