Browse Source

add placeholder text

main
yggverse 2 months ago
parent
commit
0bb3cf2415
  1. 9
      src/Entry/Address.php

9
src/Entry/Address.php

@ -9,12 +9,17 @@ class Address @@ -9,12 +9,17 @@ class Address
public \GtkEntry $entry;
public function __construct(
?string $value = null
?string $text = null,
?string $placeholder = 'URL or any search term...'
) {
$this->entry = new \GtkEntry();
$this->entry->set_text(
$value
$text
);
$this->entry->set_placeholder_text(
$placeholder
);
$this->entry->set_max_length(

Loading…
Cancel
Save