Repository navigation
v0.0.0-alpha.11
Pre-releaseHighlights
-
Pass an event on with
on.Pass. A handler that has no use for an event returnson.Pass, as it wouldtea.Quit, and the event goes to the nearest node around it with a handler for it, and on outward until one takes it. It never passes out of a modal layer.Scroll,Mouse,Click,ClickAt,RightClick,RightClickAt,MiddleClick,DoubleClick, andPresssupport it.cell := bloom.Text(name).On(on.RightClick(func() tea.Cmd { if !m.hasMenu(i) { return on.Pass // the row's menu opens instead } return m.openMenu(i) }))
-
Scrolling chains outward. A viewport passes a wheel step on when it can't move that way: at its edge, or with all of its text in sight. A one-line input or an editor at its end inside a scrolling form now lets the form scroll. Selecting past the edge of a viewport at its end scrolls the page around it too.
-
Unstyled text wraps. Text without a style now wraps to its width, as styled text does, instead of running off the edge.
Text.NoWrapkeeps each line whole and cuts it off at the edge, for tables and ASCII art.
Breaking changes
on.Handler.Handlereturns(tea.Cmd, bool), where false means the handler passed the event on.- Unstyled text that is wider than its node now wraps onto more rows. Add
.NoWrap()to keep the old clipping.
Changelog
✨ New Features
- 567a6f1: wrap unstyled text to its width, and add Text.NoWrap (@lrstanley)
- f5d159e: on: pass events outward with on.Pass (@lrstanley)
📚 Documentation
- dc28d4f: home: add a gallery of examples under the showcase (@lrstanley)
🧹 Misc
1 change
- 7fd4791: examples: use steep alpha.14's wheel and location helpers (@lrstanley)
📦 Dependency Updates
1 change
- ed1d63f: deps: bump steep and reel to v0.0.0-alpha.15 (@lrstanley)
Full changelog: v0.0.0-alpha.10...v0.0.0-alpha.11
📦 Install
go get bloomfx.dev/bloom@v0.0.0-alpha.11Docs: bloomfx.dev/bloom
💬 What to do next?
- 🙋♂️ Running into an issue or want a specific feature? Take a look here!
- ⌚ Find previous releases.
- 🗝️ Find a vulnerability? Check out our Security and Disclosure policy.
- 🔗 Other useful links: