In frontend, I have a DataTable built by fields. I need to change one column's filter type from select to input field. Is that possible to do with CUBA's DataTable? I do not have access to ColumnsDefinitions prop
How to change filter in CUBA Platform's DataTable
223 Views Asked by aspiringdev At
1
There are 1 best solutions below
Related Questions in REACTJS
- ussd reader in Recket Native module
- Teams tab application returns SSO error in mobile Outlook
- Github Pages Deployment deploys a blank page
- Is there any way to glow this bulb image like a real light bulb
- Optimize LCP ReactJs
- Page in React only renders elements after refreshing
- Unable to Post Form Data to MongoDB because of picturepath
- MERN Stack App - User Avatar Upload - 500 Error After Deployment on Render
- Hooks are not supported inside an async component error in nextjs project using useQuery
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- On the server side, it returns undefined but on the client side, logs the values no problem
- Multilevel dropdown with checkboxes in Select component
- TypeScript Error only on big type only when assigned to a variable
- Deployment through app engine, cloud sql database, problem connecting with server code, doesn't connect
- Data is not filtering in props. Showing passdata.map is not a function
Related Questions in ANTD
- Why the antd upload file to Minio could not preview
- How to use standard ExpandIcon of Table in antd
- how to get the full path of antd tree
- Not able to set font-size: 12px in ant-design components & also not able to apply a custom google fonts to ant-design components
- Antd tree table re-render
- Change maxHeight of a specific element from React
- React Ant Design: How to Insert Form Between Steps in a Vertical Steps Component?
- Can I add a checkbox to the uploaded image to make it the cover image? AntD
- How to Retrieve Value and Type of a Pie Chart Segment in Ant Design Charts on Click Event?
- Less file import from node_modules doesn't work after building application
- antd form.useWatch() error Hooks can only be called inside of the body of a function component
- Can not render antd CSS when routing automatically / to some other link using react routing
- How to pass selected value in the ant design nested table in row selection
- Ant design 4 does not work anymore after running npm install
- antd Global Theme Color Setting
Related Questions in CUBA-PLATFORM
- Creating a listener for UserSessions (CUBA Studio)
- NULL value in the "key_" column of the "am_location" relation violates the NOT NULL constraint
- How do I check that dates from one range are not in another range?
- Remove the file inside CUBA Platform's FileUpload component
- How to update multiple entities in Cuba Platform Frontend UI
- How to filter for un-empty array in CUBA Platform collection
- How to change filter in CUBA Platform's DataTable
- How to change progressBar in cuba into a circular
- forgot password in cuba
- CUBA Platform Frontend UI update model doesn't work
- How to display an editable table inside the edit entity component Cuba Platform Frontend UI
- How to get photo data in data collection CUBA Platform
- Cuba Platform Frontend UI entitities don't appear
- How to remove shadow for specific element in CUBA Platform?
- Cuba Platform Charts: vertical alignment
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
CUBA fronted generator create table components based on DataTable and fields property (which is deprecated). Usage of
DataTablecould be easily transformed to work with more modern columDefinitions, which provide better control on each column.As first step we can simply pass the same string array
fieldsascolumnDefinitionsproperty.Then we can change only needed field in array from string to column definition.
And then implement antd
filterDropdownas described in Ant Design Customized FilterComplete example based on CUBA Petclinic app available at https://github.com/vadimbasko/cuba-petclinic-custom-table-filter, you can see customized filter with input field implemented in PetList component for owner column https://github.com/vadimbasko/cuba-petclinic-custom-table-filter/blob/0f8e7e62779d0afb0fbd733dfffabf26df754f68/modules/front/src/app/pet/PetList.tsx#L29-L70.