Allow finding which ranges were clicked on an InteractiveText
This commit is contained in:
parent
2cc1df9053
commit
56d043f671
4 changed files with 155 additions and 22 deletions
|
@ -150,7 +150,7 @@ impl RenderOnce for HighlightedLabel {
|
|||
LabelSize::Default => this.text_ui(),
|
||||
LabelSize::Small => this.text_ui_sm(),
|
||||
})
|
||||
.child(StyledText::new(self.label, runs))
|
||||
.child(StyledText::new(self.label).with_runs(runs))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue