|
{ __( 'Table cells can span across more than one column or row.', 'tablepress' ) } ' } { __( 'Combining consecutive cells within the same row is called “colspanning”.', 'tablepress' ) } { ' ' + __( 'Combining consecutive cells within the same column is called “rowspanning”.', 'tablepress' ) } { ' ' }' }
{ sprintf( __( 'To combine adjacent cells, select the desired cells and click the “%s” button or use the context menu.', 'tablepress' ), __( 'Combine/Merge', 'tablepress' ) ) }
{ ' ' + __( 'The corresponding keywords, { __( 'Be aware that the Table Features for Site Visitors, like sorting, filtering, and pagination, will not work in tables which have combined cells in their body rows.', 'tablepress' ) } { ' ' } { __( 'It is however possible to use these features in tables that have combined cells in the table header or footer rows, to allow for creating complex header and footer layouts.', 'tablepress' ) } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ __( 'Last Modified', 'tablepress' ) }: | { sprintf( __( '%1$s by %2$s', 'tablepress' ), tableMeta.lastModified, tableMeta.lastEditor ) } |
{ __( 'Enable Visitor Features', 'tablepress' ) }: |
|
---|---|
{ __( 'Sorting', 'tablepress' ) }: |
|
{ __( 'Search/Filtering', 'tablepress' ) }: |
|
{ __( 'Pagination', 'tablepress' ) }: |
|
{ __( 'Pagination Length Change', 'tablepress' ) }: |
|
{ __( 'Info', 'tablepress' ) }: |
|
{ __( 'Horizontal Scrolling', 'tablepress' ) }: |
|
|
${ actionMessages.success_save_error_id_change }
${ errorIntroduction }
${ data.error_details }
`; } const notice = { status: ( data.message.includes( 'error' ) ) ? 'error' : 'success', content: actionMessages[ data.message ], type: ( data.message.includes( 'error' ) ) ? 'notice' : 'snackbar', }; return { notice }; }; const setBusyState = ( isBusy ) => updateScreenData( { isSaving: isBusy } ); processAjaxRequest( { requestData, onSuccessfulRequest, setBusyState, noticeOperations, noticesStoreDispatch } ); }; /** * Shows a preview of the table. * * @param {Object} props Function parameters. * @param {Function} props.updateScreenData Callback to update the screen data. * @param {Object} props.tableOptions Table options. * @param {Object} props.tableMeta Table meta data. * @param {Function} props.noticeOperations Callbacks for working with notices. */ const showPreview = ( { updateScreenData, tableOptions, tableMeta, noticeOperations } ) => { // For tables without unsaved changes, directly show an externally rendered table from a URL in an iframe in a Modal. if ( ! tp.made_changes ) { updateScreenData( { previewIsOpen: true, previewSrcDoc: '', } ); return; } /* For tables with unsaved changes, get the table preview HTML code for the iframe via AJAX. */ // Update information about hidden rows and columns. tp.helpers.visibility.update(); // Prepare the data for the AJAX request. const requestData = { action: 'tablepress_preview_table', _ajax_nonce: tp.nonces.preview_table, tablepress: { id: tp.table.id, new_id: tableMeta.id, name: tableMeta.name, description: tableMeta.description, data: JSON.stringify( tp.editor.options.data ), options: JSON.stringify( tableOptions ), visibility: JSON.stringify( tp.table.visibility ), number: { rows: tp.editor.options.data.length, columns: tp.editor.options.columns.length, }, }, }; /** * Callback for handling specifics of a successful save on this screen. * * @param {Object} data */ const onSuccessfulRequest = ( data ) => { updateScreenData( { previewIsOpen: true, previewSrcDoc: `
${ data.head_html }${ data.body_html }`, } ); return { notice: null }; }; const setBusyState = ( isBusy ) => updateScreenData( { previewIsLoading: isBusy } ); processAjaxRequest( { requestData, onSuccessfulRequest, setBusyState, noticeOperations } ); }; const Section = ( { noticeOperations, noticeUI, screenData, updateScreenData, tableOptions, tableMeta, updateTableMeta } ) => { const noticesStoreDispatch = useDispatch( noticesStore ); return ({ __( 'Table Header', 'tablepress' ) }: | |
---|---|
{ __( 'Table Footer', 'tablepress' ) }: | |
{ __( 'Alternating Row Colors', 'tablepress' ) }: |
|
{ __( 'Row Hover Highlighting', 'tablepress' ) }: |
|
{ __( 'Print Table Name', 'tablepress' ) }: |
|
{ __( 'Print Table Description', 'tablepress' ) }: |
|
|