Copy to Clipboard Basics
Since 2.22.4, it’s possible to add copy to clipboard capabilities to Comflow tables.
- Two new options for list segments: Enable Copy Row and Show Copy Rows Button.
- Option Enable Copy Row will enable a right click action on list rows. The new action will copy what is displayed on the row in the client to the user's clipboard.
- Option Show Copy Rows Button will enable and thereby display a copy rows action for the entire list. The new action will copy what is displayed on all row in the client to the user's clipboard.
- Copied text will be in a format that can be copied into Excel or other spreadsheet applications.
- Two external script libraries are used to enable copy to clipboard.
SheetClip.js
formats copied text in a standardized format with tabs and new line breaks.clipboard.js
adds formatted text to the user's clipboard.
New options for list segments
New actions for list segments in client
New attributes
Segment
in the PML
has two new attributes: showCopyRowAction
and showCopyRowsAction
.
New constants
There are two new constants in metadata id CACORE, each for the two new actions: menu.copy.to.clipboard.constant
and tooltip.copy.rows.constant
.