Documentation ¶
Index ¶
Constants ¶
View Source
const ( BindingType_Property BindingType = "Property" BindingType_Context = "Context" BindingType_List = "List" )
View Source
const (
// Event from Binding to Listener shows changing of data
Event_change = "change"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Binding interface { AttachChange(data EventData, fn EventHandler) AttachChangeOnce(data EventData, fn EventHandler) FireChange(param EventParam) DetachChange(fn EventHandler) HasChange() bool AttachDataReceived(data EventData, fn EventHandler) AttachDataReceivedOnce(data EventData, fn EventHandler) FireDataReceived(param EventParam) DetachDataReceived(fn EventHandler) HasDataReceived() bool AttachDataRequested(data EventData, fn EventHandler) AttachDataRequestedOnce(data EventData, fn EventHandler) FireDataRequested(param EventParam) DetachDataRequested(fn EventHandler) HasDataRequested() bool GetPath() string GetContext() Context Get() interface{} Handle(Event) }
type BindingDescription ¶
type BindingDescription struct { Model string Path string Type BindingType // contains filtered or unexported fields }
func NewBindingDescription ¶
func NewBindingDescription(m, p string) BindingDescription
func ParseBindingString ¶
func ParseBindingString(s string) (BindingDescription, bool)
func (BindingDescription) IsAbsolute ¶
func (bd BindingDescription) IsAbsolute() bool
func (BindingDescription) IsNil ¶
func (bd BindingDescription) IsNil() bool
func (BindingDescription) NotEquals ¶
func (bd BindingDescription) NotEquals(d BindingDescription) bool
func (BindingDescription) String ¶
func (bd BindingDescription) String() string
type BindingType ¶
type BindingType string
type ContextBinding ¶
type ContextBinding interface { Binding }
type Event ¶
type Event interface { Type() string Data() EventData Param() EventParam }
type EventHandler ¶
type EventHandler interface {
Handle(Event)
}
func MakeHandler ¶
func MakeHandler(fn func(Event)) EventHandler
type EventParam ¶
type EventParam interface {
Param() interface{}
}
type ListBinding ¶
type ListBinding interface { Binding AttachSort(data EventData, fn EventHandler) AttachSortOnce(data EventData, fn EventHandler) FireSort(param EventParam) DetachSort(fn EventHandler) HasSort() bool AttachFilter(data EventData, fn EventHandler) AttachFilterOnce(data EventData, fn EventHandler) FireFilter(param EventParam) DetachFilter(fn EventHandler) HasFilter() bool }
type PropertyBinding ¶
type PropertyBinding interface { Binding }
Click to show internal directories.
Click to hide internal directories.