[virion] It Implements Simple Using Form Library System

Overview

SimpleForm

[virion] It Implements Simple Using Form Library System

How To Use

  • First, declare the use statement.
use AidenKR\SimpleForm\SimpleForm;
use AidenKR\SimpleForm\SimpleFormHandler;
  • Declare the function in the second onEnable()
SimpleFormHandler::register($this);
  • Create Modal Form
$api = SimpleForm::getInstance();
$form = $api->CustomForm(function (Player $player, $result) {
    
    if(!isset($result)) return;
    
     if($result === true) {
        $player->sendMessage("This Is Modal Form Button 1");
     }

     if($result === false) {
        $player->sendMessage("This IS Modal Form Button 2");
     }
});
$form->setTitle("Modal Example Form Title");
$form->setTitle("Modal Example Form Content");
$form->setButton1("Modal Form Button 1");
$form->setButton2("Modal Form Button 2");
$form->sendToForm($player);
  • Create Button Form
$api = SimpleForm::getInstance();
$form = $api->ButtonForm(function (Player $player, $result) {

     if (!isset($result)) return;

     if($result == 0) {                   
        $player->sendMessage("This Is Button");
     }  
           
     if($result == 1) {                  
        $player->sendMessage("This Is Image Button");
     }      
});
$form->setTitle("Button Example Form Title");
$form->addButton("Button");
$form->addButton("Image Button", "/resources/items/Paper.png");
$form->sendToForm($player);
  • Create Custom Form
$api = SimpleForm::getInstance();
$form = $api->CustomForm(function (Player $player, $result) {

    if (!isset($result)) return;
});
$form->setTitle("Custom Example Form Title");
$form->addDropdown("This Is Dropdown", ["d", "r", "o", "p", "d", "o", "w", "n"]);
$form->addInput("This Is Input", "This Type Is Input");
$form->addLabel("Hello It Type Is Label");
$form->addSlider("This Is Slider", 1, 10);
$form->addStepSlider("This Is StepSlider", []);
$form->addToggle("This Is Toggle");
$form->sendToForm($player);

Example File

You might also like...
Simple Form By Using ⇒ PHP - MSQL - AJAX

php-form Simple Form By Using PHP - MYSQL - AJAX Demo: http://php-form.ga/ How To Use Download XAMPP from https://www.apachefriends.org/download.html

Simple Form By Using ⇒ PHP - MSQL - AJAX

php-form-2 Simple Form By Using PHP - MYSQL - AJAX Demo: http://php-form.ga/ How To Use Download XAMPP from https://www.apachefriends.org/download.htm

An online system to keep digitized form of employee personal files (staff personal files)

An online system to keep digitized form of employee personal files (staff personal files).

A non-intrusive support form that can be displayed on any page
A non-intrusive support form that can be displayed on any page

A non-intrusive support bubble that can be displayed on any page Using this package you can quickly add a chat bubble that opens a support form on any

Bundle providing Honeypot field for the Form Builder in Ibexa DXP Experience/Commerce (3.X)

IbexaHoneypot Bundle providing Honeypot field for the Form Builder in Ibexa DXP Experience/Commerce (3.X) What is Honey pot? A honey pot trap involves

A robust and flexible way to add double-opt-in (DOI) to any form in Mautic
A robust and flexible way to add double-opt-in (DOI) to any form in Mautic

Mautic double-opt-in (DOI) plugin Adds a robust and flexible way to add a double-opt-in process (DOI) to any form in Mautic. What is the plugin for? I

Basic User login & signup in php with JavaScript form validations

User login & signup in php User login & signup in PHP-MySQL with JavaScript form validations Project Details : Project Name : User Registration & Logi

Zem contact reborn - An extensible HTML form mailer plugin for Textpattern CMS.

com_connect Contents Introduction Installing and upgrading Migrating from zem_contact_reborn Usage Tags com_connect tag com_connect_text tag com_conne

All about docker projects either from dockerfile or compose. Anyway, here the project is in the form of a service, for the programming language I will make it later
All about docker projects either from dockerfile or compose. Anyway, here the project is in the form of a service, for the programming language I will make it later

Docker Project by ItsArul Hey, yo guys okay, this time I made some projects from Docker. Anyway, this project is open source, for example, if you want

Owner
Aiden
Hello Guest I am a student developer living in Korea.
Aiden
PHP Library that implements several messaging patterns for RabbitMQ

Thumper Thumper is a PHP library that aims to abstract several messaging patterns that can be implemented over RabbitMQ. Inside the examples folder yo

php-amqplib 276 Nov 20, 2022
This library implements a fuzzer for PHP, which can be used to find bugs in libraries

PHP Fuzzer This library implements a fuzzer for PHP, which can be used to find bugs in libraries (particularly parsing libraries) by feeding them "ran

Nikita Popov 341 Dec 25, 2022
Cooldown Library (virion) for PocketMine-MP

libCooldown Cooldown Library (virion) for PocketMine-MP Example // libCooldown::newTimer(int $cooldown_time, bool $first_ignore = true): libCooldown;

null 4 Aug 9, 2022
[Virion] A library that helps you use Discord Webhook

DiscordHelper How to register Web Hook URL How to register Web Hook URL use NewThing\DiscordHelper\DiscordHelper; DiscordHelper::setURL($YourWebHookU

null 1 Dec 25, 2021
UI virion (library) for PocketMine-MP plugins

Remark - Easy and Asynchronous Commands and Forms Quick Guide - Learn Remark by building a plugin. Install - Add Remark as a library to your plugin. E

DiamondStrider1 8 Jan 1, 2023
A simple and fast pmmp js es6 promise virion

Promises A simple and fast pmmp js es6 promise virion Api usage these examples are in base injectable php these should be easily transferable. Example

null 5 Dec 14, 2021
This package implements 0-1 Knapsack Problem algorithm i.e. allows to find the best way to fill a knapsack of a specified volume with items of a certain volume and value.

This package implements "0-1 Knapsack Problem" algorithm i.e. allows to find the best way to fill a knapsack of a specified volume with items of a certain volume and value.

Alexander Makarov 9 Sep 8, 2022
A virion for PocketMine-MP.

libIPGeolocation A virion for PocketMine-MP. You can use this to get the geolocation of an IP from ip-api.com. Usage You can see some example in here:

Hsinwei Chen 3 Feb 14, 2022
PocketMine-MP virion for easy handling of ScoreBoard packets

PocketMine-MP virion for easy handling of ScoreBoard packets

pocketmine virions of avas 3 Apr 9, 2022
A virion for PocketMine-MP to create and manage fake blocks

?? fakeblocks Create and manage fakeblocks Description: A virion for PocketMine-MP to create and manage fake blocks. This virion indicates to the clie

null 13 Nov 16, 2022