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

Required inputs #32

Open
Tishka17 opened this issue Feb 20, 2021 · 1 comment
Open

Required inputs #32

Tishka17 opened this issue Feb 20, 2021 · 1 comment
Labels
widget New widget request, or some widget fixes

Comments

@Tishka17
Copy link
Owner

Tishka17 commented Feb 20, 2021

Do not allow clicking "next" until user fills Rasio/Multiselect or other widgets.

More usecases?

@Tishka17 Tishka17 added the widget New widget request, or some widget fixes label Feb 20, 2021
@Tishka17
Copy link
Owner Author

Tishka17 commented Nov 23, 2021

идея

В каждый виджет добавить метод validate, который будет возвращать ошибку если данные в виджете заполныне неправильно. Для инпутов, это может быть проверка, что хоть что-то ввели, для мультисеелкта - что выбрано достаточное количество элементов.

Для самого диалога так же добавить .validate(current_window=True) метод, который вернет словарь вида {widget: error} по результатам проверки всех виджетов.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
widget New widget request, or some widget fixes
Projects
None yet
Development

No branches or pull requests

1 participant