app v3.0.0 Release Notes

Release Date: 2018-08-07 // about 4 years ago
  • API changes

    general

    v2 v3
    func NewWindow(c WindowConfig) (Window, error) func NewWindow(c WindowConfig) Window
    func NewPage(c PageConfig) error func NewPage(c PageConfig) Page
    func NewContextMenu(c MenuConfig) (Menu, error) func NewContextMenu(c MenuConfig) Menu
    func NewFilePanel(c FilePanelConfig) error func NewFilePanel(c FilePanelConfig) Elem
    func NewSaveFilePanel(c SaveFilePanelConfig) error func NewSaveFilePanel(c SaveFilePanelConfig) Elem
    func NewShare(v interface{}) error func NewShare(v interface{}) Elem
    func NewNotification(c NotificationConfig) error func NewNotification(c NotificationConfig) Elem
    func MenuBar() (Menu, error) func MenuBar() Menu
    func NewStatusMenu(c StatusMenuConfig) (StatusMenu, error) func NewStatusMenu(c StatusMenuConfig) StatusMenu
    func Dock() (DockTile, error) func Dock() DockTile
    func NewAction(name string, arg interface{}) func PostAction(name string, arg interface{})
    func NewActions(a ...Action) func PostActions(a ...Action)
    func Handle(name string, h ActionHandler) func HandleAction(name string, h ActionHandler)
    func NewEventSubscriber() EventSubscriber func NewEventSubscriber() *EventSubscriber
    func CSSResources() []string
    func CompoNameFromURL(u *url.URL) string removed
    func CompoNameFromURLString(rawurl string) string
    func NewErrNotFound(object string) error
    func NotFound(err error) bool
    func NewErrNotSupported(feature string) error
    func NotSupported(err error) bool

    Window

    v2 v3
    Load(url string, v ...interface{}) error Load(url string, v ...interface{})
    Render(Compo) error Render(Compo)
    LastFocus() time.Time
    Reload() error Reload()
    Previous() error Previous()
    Next() error Next()
    🚚 Move(x, y float64) error
    Center() error Center()
    Resize(width, height float64) error Resize(width, height float64)
    Focus() error Focus()
    ToggleFullScreen() error FullScreen()
    ExitFullScreen()
    ToggleMinimize() error Minimize()
    Deminimize()
    Close() error Close()

    Page

    v2 v3
    Load(url string, v ...interface{}) error Load(url string, v ...interface{})
    Render(Compo) error Render(Compo)
    LastFocus() time.Time
    Reload() error Reload()
    Previous() error Previous()
    Next() error Next()
    Close() error Close()

    Menu

    v2 v3
    Load(url string, v ...interface{}) error Load(url string, v ...interface{})
    Render(Compo) error Render(Compo)
    LastFocus() time.Time

    StatusMenu

    v2 v3
    Load(url string, v ...interface{}) error Load(url string, v ...interface{})
    Render(Compo) error Render(Compo)
    LastFocus() time.Time
    SetIcon(name string) error SetIcon(path string)
    SetText(text string) error SetText(text string)
    Close() error Close()

    DockTile

    v2 v3
    Load(url string, v ...interface{}) error Load(url string, v ...interface{})
    Render(Compo) error Render(Compo)
    LastFocus() time.Time
    SetIcon(name string) error SetIcon(path string)
    SetBadge(v interface{}) error SetBadge(v interface{})

    Misc

    • 🔨 A lot of code has been refactored.
    • 🚚 appjs and html has been moved to internal.