Repository navigation
Releases
Releases · go-humble/view
Version 0.3.1
This version updates the contribution guidelines in CONTRIBUTING.md. There are no actual code changes.
Version 0.3.0
This release adds the InsertBefore and InsertBeforeEl functions. It is 100% backwards-compatible.
Version 0.2.0
This releases introduces some new helper functions for adding and removing events from a view. Here's some example usage:
// Add a click listener on the button element, which is a child of itemView.
listener := view.AddEventListener(itemView, "click", "#button", func(ev dom.Event) {
// Use ev.CurrentTarget to get the element itself
log.Printf("%+v was clicked!", ev.CurrentTarget())
}
// If we want to remove the event listener later, we can call listener.Remove()
listener.Remove()Full documentation is available on godoc.org.
Full Changelog
- Implemented
AddEventListenerand related methods to make it easy to add and remove event listeners to child elements of a view. - Updated README, documentation, and CONTRIBUTING.
Version 0.1.0
This is the initial release following the migration from github.com/soroushjp to github.com/go-humble and the split into stand-alone packages.
See the README for a list of features, a getting started guide, and more information.