Skip to content

code-fabrik/badgui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bad GUI

bad guy icon

Bad GUI is a tiny GUI library for the web. It includes ready to use components like prompts, alerts and sliders.

Bad gui does only generates the DOM structure for you but provides no styling or design. You are responsible for the CSS.

Usage

Embed badgui.js in your HTML file:

<script src="https://example.com/badgui.js"></script>

Components

Prompt

const prompt = new badgui.prompt('Save', 'Please enter a name for the document', {
  inputs: [{
    label: 'Name', type: 'text', name: 'name'
  }],
  buttons: [{
    label: 'Cancel', action: function() {
      this.close();
    }
  }, {
    label: 'Save', action: function() {
      sendToServer(this.data());
      this.close();
    }
  }]
});

prompt.open();

About

Tiny GUI library for the web

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published