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

How to set Yasqe default options? #241

Open
kraussian opened this issue Oct 9, 2024 · 0 comments
Open

How to set Yasqe default options? #241

kraussian opened this issue Oct 9, 2024 · 0 comments

Comments

@kraussian
Copy link

I'm trying to change the indentUnit default from 2 to 4, and this is how I've tried initializing Yasgui:

const yasgui = new Yasgui(document.getElementById("yasgui"), {
    requestConfig: { endpoint: url, copyEndpointOnNewTab: true, },
    endpointCatalogueOptions: {
        getData: function () {
            return yasguiEndpoints
        },
        keys: [],
    },
    yasqe: { defaults: { indentUnit: 4 } },
}

But the Yasqe indent is still set at 2. What am I doing wrong?

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

No branches or pull requests

1 participant