Reset clears the typed text and all chip state. nextID is preserved so ids stay monotonic within a session.
()
| 523 | // Reset clears the typed text and all chip state. nextID is preserved so ids |
| 524 | // stay monotonic within a session. |
| 525 | func (p *promptInput) Reset() { |
| 526 | p.ta.Reset() |
| 527 | p.store = map[int]chipContent{} |
| 528 | p.spans = nil |
| 529 | } |
| 530 | |
| 531 | // SetValue installs a plain-text value, dropping any chip state. Used by the |
| 532 | // slash popover's Tab-completion path, where no chip can be injected. |
no outgoing calls