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 levels property to VariablesList #5677

Merged
merged 4 commits into from
Oct 14, 2024

Conversation

boutinb
Copy link
Contributor

@boutinb boutinb commented Sep 24, 2024

This was a request from @koenderks
You can now asks the levels of variable in a (single) VariablesList:

		DropDown
		{
			name: "myDrop"
			label: "Labels with " + variableWithLabels.levels.length + " values"
			values: variableWithLabels.levels
		}

It is then also possible to set a property according to the number of levels:
property bool enoughLevels: variableWithLabels.levels.length > 2

Copy link
Contributor

@JorisGoosen JorisGoosen left a comment

Choose a reason for hiding this comment

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

Ok, looks good!

Ive made sure it takes empty values into account, both on the column and the workspace. Will now also reset property levels when workspace or column emptyvalues change.

Added a onLevelsChanged messages.log to "test variables form" in jaspTestModule for easy debuggin

Its all OK by me now, so merge it at your leisure.

@boutinb boutinb merged commit 5bd11e1 into jasp-stats:development Oct 14, 2024
1 check passed
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