Skip to content

[Feature request] Missing headers, dividers and labels in menu form #5

@DaisukeDaisuke

Description

@DaisukeDaisuke

I propose allowing awaitform to insert headers, dividers, and labels into the menu.

Here, it seems possible to insert various items into the menu form, but this cannot be done with awaitform
https://github.com/DavyCraft648/PMServerUI-Example

example

			if(!$sender instanceof Player){
				return false;
			}
			Await::f2c(function() use ($sender) : \Generator{
				$menu = AwaitForm::menu(
					title: "test",
					content: "abcd",
					buttons: [
						FormControl::divider(),
						Button::simple("test"),
						FormControl::label("test2"),
						Button::simple("test1"),
						FormControl::header("abc"),
					],
				);
				try{
					yield from $menu->request($sender);
				}catch(AwaitFormException|FormValidationException){
				}
			});
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions