@ansible/ansible-ui-framework 0.0.294 → 0.0.295
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ITableColumn } from './PageTable';
|
3
|
+
/**
|
4
|
+
* BulkActionDialogProps
|
5
|
+
* @typedef {Object} BulkActionDialogProps
|
6
|
+
*/
|
3
7
|
export interface BulkActionDialogProps<T extends object> {
|
4
8
|
/** The title of the model.
|
5
9
|
* @link https://www.patternfly.org/v4/components/modal/design-guidelines#confirmation-dialogs
|
package/cjs/BulkActionDialog.js
CHANGED
@@ -97,6 +97,13 @@ var PageDialog_1 = require("./PageDialog");
|
|
97
97
|
var PageTable_1 = require("./PageTable");
|
98
98
|
var useFrameworkTranslations_1 = require("./useFrameworkTranslations");
|
99
99
|
var useTableItems_1 = require("./useTableItems");
|
100
|
+
/**
|
101
|
+
* BulkActionDialog
|
102
|
+
* @param {string} title - The title of the model.
|
103
|
+
* @param {Array(T)} items - The items to confirm for the bulk action.
|
104
|
+
* @param {function(T) : (string | number)} keyFn - A function that gets a unique key for each item.
|
105
|
+
* @param {Array(ITableColumn<T>)} actionColumns - The columns to display when processing the actions.
|
106
|
+
*/
|
100
107
|
function BulkActionDialog(props) {
|
101
108
|
var title = props.title, items = props.items, keyFn = props.keyFn, actionColumns = props.actionColumns, actionFn = props.actionFn, onComplete = props.onComplete, onClose = props.onClose, processingText = props.processingText, isDanger = props.isDanger;
|
102
109
|
var _a = __read((0, useFrameworkTranslations_1.useFrameworkTranslations)(), 1), translations = _a[0];
|
package/package.json
CHANGED