(&self)
| 802 | } |
| 803 | |
| 804 | fn is_empty_text_input(&self) -> bool { |
| 805 | let mut text_runs = self.text_runs(); |
| 806 | if let Some(first_text_run) = text_runs.next() { |
| 807 | first_text_run |
| 808 | .data() |
| 809 | .value() |
| 810 | .is_none_or(|value| value.is_empty()) |
| 811 | && text_runs.next().is_none() |
| 812 | } else { |
| 813 | true |
| 814 | } |
| 815 | } |
| 816 | |
| 817 | pub fn placeholder(&self) -> Option<&str> { |
| 818 | self.data() |