settings = [ StylesSettingsTypes::$color, StylesSettingsTypes::$background_color, StylesSettingsTypes::$font_size, [ "key" => "height_type", "type" => SettingsTypes::$select, "label" => Utils::t( "Height type" ), "options" => [ [ "id" => "full", "label" => "Full (Stretch vertically)" ], [ "id" => "custom", "label" => Utils::t( "Custom (Setting at the bottom)" ) ], ], "property" => "align-self", "validate_to_style" => [ "by_value" => [ "full" => "align-self:stretch;height:unset;", "custom" => "align-self:unset;" ], ], ], StylesSettingsTypes::$height + [ "depends_on" => "height_type", "show_if" => "custom" ], StylesSettingsTypes::$width, StylesSettingsTypes::$border_radius, StylesSettingsTypes::$margin, StylesSettingsTypes::$padding, StylesSettingsTypes::$box_shadow, StylesSettingsTypes::$custom, ]; } /** * @return array */ public function get_settings() { return $this->settings; } }