Code Monkey home page Code Monkey logo

myfriends's Introduction

MyFriends - Fyne bind external test application

My Friends application

This is an example application to test the "external bind" functionality of the Golang UI library Fyne. If you would like to see examples of bound external data then I hope this example application can be of use.

Architecture using Fyne bind external

This is MyFriends UI application with a list of selectable names to the left and an "edit details panel" to the right.

You can save (print to std out) and "load" the list of friends and their details.

You can also select a friend in the list and edit the details of that friend such as their names and their age.

type Friend struct {
  FirstName   string
  FamilyName  string
  Age         int
  // etc...
}

Most likely, you would like to keep a list of Friend structs as your global data model in the program. At least, you don’t want to load the data and then store all the names and details in labels and textfields. That would probably be a mayhem when you decide to save your data, and you need to extract all that information.

If your data-model for the application is a list of external binds of Friend struct any changes to that bound Friend value in the details panel would be able to update the value in the application data-model as well as automagically update any UI component/widget that has that bound Friend value as it’s internal data-model.

myfriends's People

Contributors

chran554 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.