Text Shadow Control
The text-shadow control displays a popup that lets you set the CSS text-shadow of a specified HTML text element.
class Prefix_Element_Textarea extends \Bricks\Element { // Set builder controls public function set_controls() { $this->controls['exampleTextShadow'] = [ 'tab' => 'content', 'label' => esc_html__( 'Text Shadow', 'bricks' ), 'type' => 'text-shadow', 'css' => [ [ 'property' => 'text-shadow', 'selector' => '.prefix-text', ], ], 'inline' => true, ]; }
// Render element HTML public function render() { echo '<h3 class="prefix-text">' . get_bloginfo( 'name' ) . '</h3>'; }}Resources
Section titled “Resources”https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.