Skip to content

Эта утилита помогает создать макет графического интерфейса JavaFX из json или массива.

Notifications You must be signed in to change notification settings

jphp-group-community/JTGC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JTGC

This utility helps to create a JavaFX GUI layout from json.

Example

php class :

use gui;
use jtgc\parser\JTGC;
use std;

class Form extends UXForm
{
    public function show()
    {
        $this->layout = new JTGC(fs::parse("layout.json"))->get([ 300, 300 ]); // [ 300, 300 ] is a size of panel
        parent::show(); // show form

        $this->mySuperButton->on("click", fn() => {
            UXDialog::show("mySuperButton is clicked!"); // show dialog
        });
    }
}

layout.json :

[
    {
        "_": "button",
        "text": "test JTGC",
        "size": [50, 70],
        "id": "mySuperButton"
    }
]

About

Эта утилита помогает создать макет графического интерфейса JavaFX из json или массива.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages