2 * This file is part of the TYPO3 CMS project.
4 * It is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License, either version 2
6 * of the License, or any later version.
8 * For the full copyright and license information, please read the
9 * LICENSE.txt file that was distributed with this source code.
11 * The TYPO3 project - inspiring people to share!
14 import Modal = require('TYPO3/CMS/Backend/Modal');
15 import Severity = require('TYPO3/CMS/Backend/Severity');
18 * Module: TYPO3/CMS/Backend/InfoWindow
19 * @exports TYPO3/CMS/Backend/InfoWindow
23 * Shows the info modal
25 * @param {string} table
26 * @param {string | number} uid
28 public static showItem(table: string, uid: string|number): void {
30 type: Modal.types.iframe,
31 size: Modal.sizes.large,
32 content: TYPO3.settings.ShowItem.moduleUrl
33 + '&table=' + encodeURIComponent(table)
34 + '&uid=' + (typeof uid === 'number' ? uid : encodeURIComponent(uid)),
35 severity: Severity.notice
40 // expose as global object
41 TYPO3.InfoWindow = InfoWindow;