Closed xiCO2k closed 3 years ago
This PR adds the capability to add defaultStyles to the element.
defaultStyles
The way was before it was setting the default at last:
return Components\Dt::fromStyles( self::getRenderer(), $content, $styles, $properties )->fontBold()->block();
The way I suggested here, it will always be set at first, so if a default style needs to be overwritten it will work.
Let me know if you have a better approach for this.
This PR adds the capability to add
defaultStyles
to the element.The way was before it was setting the default at last:
The way I suggested here, it will always be set at first, so if a default style needs to be overwritten it will work.
Let me know if you have a better approach for this.