Dialogbutton

A Dialogbutton opens a pop-up on click. The pop-up contains arbitrary content. To close the pop-up use the option hide.

Attributes

Name Allowed Values Description
width Length- or Percentage Sets the width of a widget
css CSS Class Name Sets a new style
tooltip Text Sets a tooltip text
id Text Sets the unique ID of the widget
title Text Title of the pop-up
label Text Text of the button

Options

Name Allowed Values Description
visible Bool Widget visible/invisible
enabled Bool Widget enabled/disabled
hide Bool Hide the pop-up

Example

XML

<dialogbutton title="A Custom Dialog" label="Button" id="dialogbutton">
  <label>Custom Dialog</label>
  <button action="closeDialog">Close</button>
</dialogbutton>

PHP

$result->setOption('dialogbutton', 'hide', true);

Result

Links

You could leave a comment if you were logged in.