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

Add options to the internal listbox #668

Closed
MarkFereday opened this issue Sep 2, 2021 · 3 comments
Closed

Add options to the internal listbox #668

MarkFereday opened this issue Sep 2, 2021 · 3 comments

Comments

@MarkFereday
Copy link

🚀 Feature

Using the internal listbox to present a field filter has no options for e.g. sorting

Motivation

A very common use-case in a mashup, add filters with a defined sort, or a sort changeable by the user

Additional context

Raised on QlikBranch, recommended to raise as issue here. See also #654

@Caele
Copy link
Collaborator

Caele commented Sep 8, 2021

This should work for you for now:

nebbie.field('[My Field]').then((s) =>
      s.mount(document.querySelector('.listbox'), {
        properties: {
          qListObjectDef: {
            qDef: {
              qSortCriterias: [
                {
                  qSortByState: 0,
                  qSortByAscii: 1,
                  qSortByNumeric: 1,
                  qSortByLoadOrder: 1,
                },
              ],
            },
          },
        },
      })
    );

Will keep this open as the current solution requires very intimite knowledge of the hyperCube properties. Sorting should be simpler.

@MarkFereday
Copy link
Author

MarkFereday commented Sep 8, 2021

Thanks, I'll try this ASAP

@Caele
Copy link
Collaborator

Caele commented Mar 2, 2023

Closing as no more work on options are planned, will instead point to the coming filterpane chart.

@Caele Caele closed this as completed Mar 2, 2023
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

2 participants