MCPcopy Index your code
hub / github.com/lxn/walk / detachModel

Method detachModel

tableview.go:800–808  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

798}
799
800func (tv *TableView) detachModel() {
801 tv.model.RowsReset().Detach(tv.rowsResetHandlerHandle)
802 tv.model.RowChanged().Detach(tv.rowChangedHandlerHandle)
803 tv.model.RowsInserted().Detach(tv.rowsInsertedHandlerHandle)
804 tv.model.RowsRemoved().Detach(tv.rowsRemovedHandlerHandle)
805 if sorter, ok := tv.model.(Sorter); ok {
806 sorter.SortChanged().Detach(tv.sortChangedHandlerHandle)
807 }
808}
809
810// ItemCountChanged returns the event that is published when the number of items
811// in the model of the TableView changed.

Callers 1

SetModelMethod · 0.95

Calls 6

RowsResetMethod · 0.65
RowChangedMethod · 0.65
RowsInsertedMethod · 0.65
RowsRemovedMethod · 0.65
SortChangedMethod · 0.65
DetachMethod · 0.45

Tested by

no test coverage detected