Project

General

Profile

Actions

Task #2023

closed

FE: Add empty option for clearable select boxes

Added by Radek Tomiška almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Frontend
Target version:
Start date:
01/27/2020
Due date:
% Done:

100%

Estimated time:
Owner:

Description

Add empty option for clearable select boxes (SelectBox, BooleanSelectBox, EnumSelectBox). Empty option can be used for clearing select value (shotcut for clear button).


Files

empty-option.png (38.9 KB) empty-option.png Radek Tomiška, 01/27/2020 02:10 PM

Related issues

Related to IdStory Identity Manager - Defect #2423: User setting - Default page size - cannot be clearedClosedRadek Tomiška08/04/2020

Actions
Actions #1

Updated by Radek Tomiška almost 5 years ago

  • File empty-option.png empty-option.png added
  • Status changed from New to Needs feedback
  • Assignee changed from Radek Tomiška to Peter Štrunc
  • % Done changed from 0 to 90

I added lokalized empty option into SelectBox, BooleanSelectBox, EnumSelectBox.

Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/403cd961224d13ff10f2a95ee42abbea1a6ffdae

Could you provide me a feedback, please?

Actions #2

Updated by Peter Štrunc almost 5 years ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Peter Štrunc to Radek Tomiška

It looks way better, thank you very much. Is it possible to add different "empty messages" to different places in IdM? Current message "--empty--" is great in EAV values and other simillar places, but when choosing system state for example, it would be nicer to have option "Active" instead.

Actions #3

Updated by Radek Tomiška almost 5 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Radek Tomiška to Peter Štrunc

Thx for feeback and good idea, i've added configurable empty option label property into select boxes and change lacalization fo system state, commit:
https://github.com/bcvsolutions/CzechIdMng/commit/17b2396b09dcb8e442e457f7c2e51e2e211911bb

i fixed empty option usage in table bulk actions and in pageable select boxes (record number is correct now):
https://github.com/bcvsolutions/CzechIdMng/commit/713ad9b6afbd61ff9d39b30ee8d2f6adf1b9c678

Could you provide me a feedback again please?

Actions #4

Updated by Peter Štrunc almost 5 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Peter Štrunc to Radek Tomiška
  • % Done changed from 90 to 100

Hey Radek, it looks good. Thanks for this feature. I did not find anything wrong so i think its OK. Only thing is that in some cases it may be confusing that after selecting "empty" option, the content of the select ox is different than the thing you clicked on. We discussed this about system state select box. But i tihnk that it is OK this way and we may imporove it sometime in the future.

Actions #5

Updated by Radek Tomiška almost 5 years ago

  • Status changed from Resolved to Closed
Actions #6

Updated by Radek Tomiška over 4 years ago

  • Related to Defect #2423: User setting - Default page size - cannot be cleared added
Actions

Also available in: Atom PDF