JQuery\Dialog

This is a normal info dialog
This is a error dialog
This is a question dialog

Source

<?=$dialog_info = new Barebone\jQuery\UI\Dialog(
    'info', //dialogtype
    'Information', // title
    'This is a normal info dialog', // body
    [], // buttons
    [   // options
        'autoOpen' => false, 
        'modal' => true
    ]); 
?>
<?=$dialog_info1 = new Barebone\jQuery\UI\Dialog(
    'error', 
    'Error', 
    'This is a error dialog', 
    [], 
    [
        'autoOpen' => false, 
        'modal' => true
    ]);
?>
<?=$dialog_info2 = new Barebone\jQuery\UI\Dialog(
    'question', 
    'Question', 
    'This is a question dialog', 
    [], 
    [
        'autoOpen' => false, 
        'modal' => true
    ]);
?>

<?php 
    $form = new Barebone\HTML\TForm();
    $form->append(new Barebone\HTML\TLabel('Dit is een label'));
    $form->append(new Barebone\HTML\TInput('nameofel'));
    $form->append(new Barebone\HTML\TLabel('Dit is nog een label'));
    $form->append(new Barebone\HTML\TInput('nameofeal'));
?>
<?=$dialog_info3 = new Barebone\jQuery\UI\Dialog(
    'input', 
    'Hello world', 
    $form, 
    [], 
    [
        'autoOpen' => false, 
        'resizable' => false, 
        'height' => 'auto'
    ]);
?>

<button onclick="<?=$dialog_info->open();?>">Info</button>
<button onclick="<?=$dialog_info1->open();?>">Error</button>
<button onclick="<?=$dialog_info2->open();?>">Question</button>
<button onclick="<?=$dialog_info3->open();?>">Input dialog</button>
  • Barebone\jQuery\UI\Dialog

    Barebone\jQuery\UI\Dialog extends Barebone\HTML\TElement
    • [P] $_id : mixed
    • [P] $options : mixed
    • [M] __construct( $type, $title, $message, $attributes, $options ) : void
    • [M] open() : void
    • [M] close() : void
    • [M] __toString() : string
    • Barebone\HTML\TElement

      Barebone\HTML\TElement
      • [P] $tag : string
      • [P] $innertext : string
      • [P] $children : array
      • [P] $attributes : array
      • [P] $non_closing_tags : mixed
      • [M] __construct( string $tag, array $attributes ) : void
      • [M] append( Barebone\HTML\TElement $element ) : void
      • [M] prepend( Barebone\HTML\TElement $element ) : void
      • [M] class_exists( $cssclass ) : void
      • [M] add_class( $cssclass ) : void
      • [M] remove_class( $cssclass ) : void
      • [M] innertext( string $value ) : void
      • [M] data( string $name, string $value ) : void
      • [M] aria( string $name, string $value ) : void
      • [M] on( string $event, string $callback ) : void
      • [M] css( string $identifier, string $rule ) : void
      • [M] wrap( string $tagname, array $attributes ) : void
      • [M] enable() : void
      • [M] disable() : void
      • [M] has_closing_tag() : void
      • [M] has_children() : void
      • [M] count_children() : void
      • [M] get_children() : void
      • [M] replace_child( $key, $new_child ) : void
      • [M] get_child( $key ) : void
      • [M] __unset( $name ) : void
      • [M] __isset( $name ) : void
      • [M] __set( $name, $value ) : void
      • [M] __get( $name ) : void
      • [M] render() : void
      • [M] __toString() : string
      • [M] editable() : void