/**
* Set Heading element display style.
*
* @param string $value Heading display value.
*
* @return self Returns instance of the Heading element class.
*
* @access public
*/
public function d(string $value): self
Examples
Set Heading element display using fluent interface
use function Thermage\heading;
use function Thermage\render;
// ...
render(
heading('Stay RAD!')->d('block')
);
Set Heading element display using magic method fluent interface
use function Thermage\heading;
use function Thermage\render;
// ...
render(
heading('Stay RAD!')->dBlock()
);
Set Heading element width using magic classes pipeline
use function Thermage\heading;
use function Thermage\render;
// ...
render(
heading('Stay RAD!', 'd-block')
);
Terminal
$ php thermage.php
Stay RAD!
By default Heading element display state is block
, but you can change it to none
.
Getting Started
Methods
- d Set Heading element display style.
- getShortcodes Get Heading element shortcodes instance.
- getTheme Get Heading element theme.
- getValue Get Heading element value.
- render Render Heading element.
- setShortcodes Set Heading element shortcodes instance.
- setTheme Set Heading element theme instance.
- size Set Heading size.
- textAlign Set Heading element text align.
- value Set Heading element value.