Jam.py documentation

warning

warning(mess, callback)

domain: client

language: javascript

class AbstractItem

Description

Use warning to create a modal form with the Ok button.

The mess parameter specifies the text or html content that will appear in the body of the form.

If callback function are specified it will be executed when user clicks the button and then the form will be closed.

Example

item.warning('No record selected.');