Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce support for new parameters #9

Merged
merged 5 commits into from
Nov 3, 2023
Merged

Conversation

klinakerdisy
Copy link
Contributor

"operationMode" and "disabledUiFeatures".

@klinakerdisy klinakerdisy requested a review from jkissel November 2, 2023 08:44
README.md Outdated Show resolved Hide resolved
src/cadenza.js Show resolved Hide resolved
src/cadenza.js Outdated
@@ -165,6 +172,8 @@ export class CadenzaClient {
* @param {GlobalId} [options.highlightGlobalId] - The ID of an item to highlight / expand in the navigator
* @param {string} [options.mediaType] - Set to 'application/pdf' for views of type "JasperReports report"
* to show the report PDF directly, without any Cadenza headers or footers.
* @param {string} [options.operationMode] - Whether to enable simplified operation mode
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proposal: Use a type for the operation mode, too.

/** @typedef {'normal' | 'simplified'} WorkbookOperationMode - The mode in which a workbook should be operated */

Copy link
Contributor Author

@klinakerdisy klinakerdisy Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done :)

src/cadenza.js Outdated
*
* _Note:_ Supported features are:
* * 'workbook-design' - Disable the designer
* * 'workbook-view-management' - Disable workbook layout/design editing
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add the hint from the sprint review? "Is included in 'workbook-design'."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added :)

@klinakerdisy klinakerdisy merged commit 52f303a into main Nov 3, 2023
1 check passed
@klinakerdisy klinakerdisy deleted the disable-features branch November 3, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants