netherjs/nui2

A JS UI toolkit made by someone who hates JS.

Maintainers

Details

github.com/netherjs/nui2

Source

Issues

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

dev-master 2021-02-05 23:36 UTC

This package is auto-updated.

Last update: 2024-11-06 07:35:38 UTC


README

Work in progress.

Requirements

  • jQuery 3.5
  • Bootstrap 4.5
  • Font Awesome 5

Testing

$ composer install $ php -S localhost:80 -t www .

Example Use

import Dialog from "./nui/element/dialog.js";
import Button from "./nui/element/button.js";

new Dialog({
	'Modal': true,
	'Title': 'Do you?',
	'Icon': 'fas fa-question-circle',
	'Content': 'Well?',
	'Buttons': [
		new Button({
			'Text':'Probably',
			'Class': 'NUI-Action-Accept'
		})
	]
})
.Register(
	'Accept', 'AppOnAccept',
	function(){ this.Close(); return; }
)