Git Product home page Git Product logo

wlforms's Introduction

!!Very raw state!!

WLForms

Alternative to FormObjects, focused on desktop Mathematica rather than Wolfram Cloud.

Quick intro

The idea is to borrow as much as possible from FormObjects/FormFunctions and to adapt it for desktop gui creators' sake.

There are a few problems with FormObjects in MMA, which otherwise work well within the Cloud environment, that prompted me to create it.

  • extracting values

    Setting[formObject] @ "x" is not very handy,

    WLForms` allows you to do form["x"]. Or form["State"] to get them all.

  • setting values

    formObject @ <|"x" -> 1|> is not very idiomatic and together with Setting it makes creating own field controllers weird

    WLForms` allows you to do form["x"] = 1

  • custom field controllers

    The formObject["x"] automatically creating a controller is nice but it is either this or you need to assemble your controller from scratch.

    WLForms` allows you to do FieldController @ whatever[Dynamic[form@"x"]] and the FieldController wrapper will take care of labeling it in case of interpretation failure. Future releases will bring more features.

    I am also not a fan of warnings displayed as a part of the same layer of layout because it moves/changes the structure of everything so WLForms` uses AttachedCell to display warnings.

For a small example please see Wiki.

Installation

Manual

Go to 'releases' tab and download appropriate .paclet file.

Run PacletInstall @ path/to/the.paclet file

Via MPM`

If you don't have MPM` yet, run:

Import[" https://raw.githubusercontent.com/kubapod/mpm/master/install.m"]

and then:

Needs @ "MPM`"     
MPMInstall["kubapod", "wlforms"]

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.