Comments (8)
@sahanaN123 You can configure the filters to be combobox instead of input field as in our example
from fundamental-ngx.
@droshev : We are using combo box itself and not input field. So, when we select an option from dropdown like "invited", it is listing the items in the table which has value "not invited" as the word "invited" is subset of "not invited". Finally, the fix we are expecting is to list the items which has the value "invited" only and not anything else. I hope i am clear this time??
from fundamental-ngx.
@droshev : We are using combo box itself and not input field. So, when we select an option from dropdown like "invited", it is listing the items in the table which has value "not invited" as the word "invited" is subset of "not invited". Finally, the fix we are expecting is to list the items which has the value "invited" only and not anything else. I hope i am clear this time??
I see, one thing you could do in this case would be to utilize a boolean with a select like the "Product Verified" filter in this example: https://ng-15-downport--fundamental-ngx.netlify.app/#/platform/value-help-dialog#custom-column
If there are options beyond "Invited" and "Not Invited", I believe you should be able to have a select component that has several options and the corresponding model can be an array of strings or something like that
from fundamental-ngx.
Here is a stackblitz where I'm adding a custom column via *fdpValueHelpColumnDef
which has three options, 'Invited', 'Not Invited', and 'Some other value'. Note the modified search function that is looking for an exact match, rather than .includes()
, when the value is in InvitationStatuses
from fundamental-ngx.
Here is a stackblitz where I'm adding a custom column via
*fdpValueHelpColumnDef
which has three options, 'Invited', 'Not Invited', and 'Some other value'. Note the modified search function that is looking for an exact match, rather than.includes()
, when the value is in InvitationStatuses
@mikerodonnell89 : We went through the above example and its working fine. So in which version of the library we can expect the same fix at our end??
from fundamental-ngx.
@mikerodonnell89 : We went through the above example and its working fine. So in which version of the library we can expect the same fix at our end??
There is no fix required from fundamental-ngx. The working stackblitz example i linked above is for ng17 but the same principles work for fundamental-ngx 0.43.* and ng15. Also, your linked stackblitz doesn't have a VHD in it so I think it's the wrong link, but I understand the problem you describe.
Please take a look at https://ng-15-downport--fundamental-ngx.netlify.app/#/platform/value-help-dialog#custom-column
In this example there is a custom column created using *fdpValueHelpColumnDef
and an <fd-select>
is placed inside of a <fdp-value-help-dialog-filter>
to filter on this custom column. While this custom column and select is just referring to a boolean, it can really be anything. See my stackblitz example and do a search through the two files (ts/html) for the string "invitationStatus" and you'll get a better idea of how that works and the modifications that need to be made to the example on the documentation website
from fundamental-ngx.
@mikerodonnell89 : I checked the stackblitz shared and the difference i see is you were making use of fdp-select for dropdown values in the filter. But we are making use of combobox for filters having multiple values as even suggested by @droshev . I was able to replicate the issue here value-help-dialog issue
Uploading Screen Recording 2024-05-09 at 9.07.28 AM.mov…
from fundamental-ngx.
Here is your example working https://stackblitz.com/edit/bk68g8-fgmup9?file=src%2Fapp%2Fcolumn-template%2Fplatform-vhd-column-template-example.component.ts
As most of the filtering logic comes from the application side (like many things in the library), the examples from our documentation or from github are only meant to serve as a demonstration and should be reworked to fit your specific needs
from fundamental-ngx.
Related Issues (20)
- Dayjs strict mode showing local date not UTC HOT 4
- search field UI inconsistency. HOT 3
- Platform table grouping not spanning entire row HOT 3
- Change Detection issue when performing a http request within a Dialog HOT 4
- [BUG] Performance issues for Table fundamental-ngx component
- [Feature Request] Property for tracking scroll position when using table component with outerScroll HOT 1
- fd-grid-list-item-toolbar issue with grid list item avatar HOT 1
- [Platform] Table tree with dynamic data HOT 2
- [Sourcing][Accessibility] Focus and visibility of the cell is not working properly in fdp-table HOT 2
- [P4] [Sourcing] [Platform] Table column filtering does not allow multiple words
- Built-in footer support for platform table components as supported in core table components HOT 3
- In Wizard Component interactive elements overlap issue over floating footer and progress bar. HOT 1
- [Platform table] FDP - Personalization Dialog (No API or function to persist the selected columns)
- Date Range localization validation using Dayjs Datetime Adapter not working correctly HOT 1
- Input placeholder text missing left margin HOT 2
- Use select API for Form generator type select
- Platform table - when using pageScrolling, fetching new data should not set busy indicator over entire table, but instead display one loading row
- pick Year/Month range in range date picker
- Incorrect padding for the "fd-card" footer
- [P3][Sourcing][Multi-input]For Multi-select fields - type in on the field select the match then click on the next header field. The cursor returns to the previous field. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fundamental-ngx.