devexpress-reporting-react
Version:
DevExpress Reporting React provides the capability to develop a reporting application to create and customize reports.
7 lines (6 loc) • 347 B
JavaScript
import React from 'react';
import { InitButtonWithTemplate } from '@devexpress/analytics-core/core/widgets/_buttonInlineEditor';
const useDxButtonWithTemplate = (ref, options) => {
React.useEffect(() => options && ref.current && InitButtonWithTemplate(ref.current, options), [options, ref.current]);
};
export default useDxButtonWithTemplate;