-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'AlejandroCano/ResponsiveSearchControl'
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41fc3c0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Responsive SearchControl
Thanks to @MehdyKarimpour, the SearchControl is much more mobile-friendly.
The previous behaviour was to shown a table with
table-responsibe
that allows horizontal scrolling.Now by default a more mobile-friendly will be shown below sm breakpoint:
Internally a completely different render mechanism is used. Each element has a header with a checkbox for selecting and a full-text link (instead of an small arrow). Still the new mobile-friently mode respects all the
CellFormatter
infrastructure.By clicking in the yellow button you can swith from table-mode to mobile-mode.
If you want to change the default mode, of hide the button to swith modes. you can use
SeachControlLoaded.mobileOptions
(globally) or configure for one particular queryQuerySettings.mobileOptions
or for one particula SearchControl (SearchControlProps.mobileOptions
).Note that the buttons in the SearchControl toolbar have also been simplified (no label).
CellFormatters for Telephone and E-Mail
Finally now there are new automatic formatters for e-mail address and telephone.
The new formatters use
<a href="tel:..."/>
and<a href="mailto:..."/>
when the server informas that the property has aTelephoneValidatorAttribute
andEMailValidatorAttribute
.If this behaviour makes problems in your application, you can remove the
Finder.formatRule
in yourMainAdmin.tsx
(globlally) or define a custom formatter for a property route usingFinder.registerPropertyFormatter
.Thanks @MehdyKarimpour for the great work!
41fc3c0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're welcome. Thanks @olmobrutall for the valuable support! 👍