All Projects → matteobruni → object-gui

matteobruni / object-gui

Licence: MIT license
Object GUI - Javascript Object GUI Editor

Programming Languages

typescript
32286 projects
SCSS
7915 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to object-gui

helpafamily
Impactful ways to help families in need through donated meals, hygiene kits, and more. By Margarita Humanitarian Foundation.
Stars: ✭ 41 (-19.61%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
Web-Development-Resources
One and only place on the internet for all Web Development Resources.
Stars: ✭ 51 (+0%)
Mutual labels:  webdev, webdesign
HacktoberFest-2021
No description or website provided.
Stars: ✭ 278 (+445.1%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
Hacktoberfest 2021
Hello, Welcome to this repo. don't forget to read guidelines in readme.md
Stars: ✭ 126 (+147.06%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
Hactoberfest2021
Hacktoberfest2021
Stars: ✭ 45 (-11.76%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
kartik python
It's my python repository, where I upload various python projects using many kinds of modules from tkinter to opencv to pygames. It's very fun to code them :)
Stars: ✭ 14 (-72.55%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
NoteUsingRoom
Note Apps using Room database
Stars: ✭ 18 (-64.71%)
Mutual labels:  neumorphism, neumorphic-ui
Hacktoberfest-2021
Create Hacktoberfest PRs. Star this Repo!⭐
Stars: ✭ 32 (-37.25%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
bookmarks
Bookmarks that I ❤️
Stars: ✭ 151 (+196.08%)
Mutual labels:  webdev, webdesign
Guide Integrateur
Un guide destiné aux intégrateurs chargés de réaliser des gabarits HTML et CSS accessibles.
Stars: ✭ 125 (+145.1%)
Mutual labels:  webdev, webdesign
github-fest-2021
No description or website provided.
Stars: ✭ 44 (-13.73%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
Hacktoberfest-2021
This repository dedicated to Hacktoberfest 2021. Hacktoberfest is a month long open source contribution program held in October every year by Digital Ocean. This is a beginner-friendly open source event.
Stars: ✭ 10 (-80.39%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
Hacktoberfest2021-DSA
If You know the implementation of any DSA related topic/problem then you can contribute it in this repo. Raise Genuine PRs only. Your PRs will be accepted, keep patience. Star this Repo. You aren't allowed to Update README.md. Welcoming developers, content writers, and programming enthusiasts.
Stars: ✭ 232 (+354.9%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
DSA-CRACKER
This is an attempt to solve 450 questions carefully curated by Love Babbar.
Stars: ✭ 92 (+80.39%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
meme-box
Manage and trigger media in OBS as a browser source
Stars: ✭ 82 (+60.78%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
Tsparticles
tsParticles - Easily create highly customizable particles animations and use them as animated backgrounds for your website. Ready to use components available for React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Solid, Riot and Web Components.
Stars: ✭ 2,694 (+5182.35%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
Idm221
Drexel IDM Web Authoring I
Stars: ✭ 25 (-50.98%)
Mutual labels:  webdev, webdesign
LuminousNewTab
Luminous New Tab is a beautiful 'new tab' browser extension that has an animated gradient background! New tabs will show your bookmarks, the time, weather and let you do searches too!
Stars: ✭ 18 (-64.71%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
Awesome-Flutter-Templates
A Huge Collection of Flutter App templates
Stars: ✭ 53 (+3.92%)
Mutual labels:  hacktoberfest2021, hacktoberfest-2021
HacktoberFest-2021
A repository for Hacktober Fest contributions. Everyone is welcome. Fork away!
Stars: ✭ 10 (-80.39%)
Mutual labels:  hacktoberfest2021

README in: Indonesian README in: German README in: Hebrew README in: Spanish README in: Portuguese

Object GUI - Javascript Object Editor

Object GUI is your fully customizable Javascript Object GUI Editor

Gitpod Ready-to-Code

Usage

You can see a working sample here: https://codepen.io/matteobruni/pen/oNxNvja

Installation

HTML / Vanilla JS

You need to include these files:

CSS

https://cdn.jsdelivr.net/npm/[email protected]/dist/css/object-gui.css

Javascript

https://cdn.jsdelivr.net/npm/[email protected]/dist/js/object-gui.min.js

ES 6 Imports

import { Editor } from "object-gui";

CommonJS / Node.js

const Editor = require("object-gui");

Usage

const code = document.getElementById("code");

const data = {
  prop1: "pluto",
  prop2: 3,
  group1: {
    prop1: "paperino",
    prop2: 0.3,
  },
  color1: "#ff0000",
  select1: "Item 2",
  alert: function () {
    alert(JSON.stringify(data, null, 4));
  },
};

const editor = new Editor("sample", "Sample", data);

editor.top().right();
editor.theme("light");

const group1 = editor.root.addGroup("group1", "Group 1", true);

group1.addProperty("prop1", "Property 1", "string").change(() => {
  console.log(data);
});

group1
  .addProperty("prop2", "Property 2", "number")
  .min(0)
  .max(1)
  .step(0.01)
  .change(() => {
    console.log(data);
  });

editor.root.addProperty("prop1", "Property 1", "string").change(() => {
  console.log(data);
});

editor.root
  .addProperty("prop2", "Property 2", "number")
  .min(0)
  .max(10)
  .step(0.5)
  .change(() => {
    console.log(data);
  });

editor.root.addProperty("color1", "Color 1", "color").change(() => {
  console.log(data);
});

const select1Input = editor.root.addProperty("select1", "Select 1", "select").change(() => {
  code.innerText = JSON.stringify(data, null, 4);

  console.log(data);
});

select1Input.addItem("Item 1");
select1Input.addItem("Item 2");
select1Input.addItem("Item 3");

editor.root.addButton("alert", "Alert");

code.innerText = JSON.stringify(data, null, 4);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].