wix-style-react
Version:
wix-style-react
37 lines (34 loc) • 1.11 kB
JavaScript
import React from 'react';
import TableActionCell from 'wix-style-react/TableActionCell';
import { Download, Duplicate, Print } from 'wix-style-react/new-icons';
import style from '../TableActionCell.story.st.css';
var Example = function Example() {
return React.createElement(
'div',
{ className: style.exampleRow },
React.createElement(TableActionCell, {
dataHook: 'story-only-secondary',
secondaryActions: [{
text: 'Download',
icon: React.createElement(Download, null),
onClick: function onClick() {
return window.alert('Download action was triggered.');
}
}, {
text: 'Duplicate',
icon: React.createElement(Duplicate, null),
onClick: function onClick() {
return window.alert('Duplicate action was triggered.');
}
}, {
text: 'Print',
icon: React.createElement(Print, null),
onClick: function onClick() {
return window.alert('Print action was triggered.');
}
}],
numOfVisibleSecondaryActions: 2
})
);
};
export default Example;