Questions tagged [ant-design-pro]

482 questions
7
votes
3 answers

why destroyOnClose={true} not working in React

I am developing a React hook based functional application with TypeScript and I am using modal from ant design. I'm submitting a form through modal for a table. So, the modal will be called for more than once to fill-up different rows of the…
sandy
  • 283
  • 1
  • 7
  • 27
7
votes
4 answers

Search Ant Design Tree Select by Title

By default Tree select of Ant design search by value, is there a way to search by title? I have tried using onSearch function but it doesn't change any behavior of Tree Select
Faizan Ahmad
  • 304
  • 3
  • 13
7
votes
1 answer

Icon should have `type` prop or `component` prop or `children`?

Warning: Icon should have `type` prop or `component` prop or `children`. How to troubleshoot the issue? import React from 'react'; import { bindActionCreators,createStore } from 'redux'; import { Link, browserHistory } from 'react-router'; import…
7
votes
4 answers

Ant design - How do i auto close select ("tags" or "multiple" mode) dropdown after each selection?

I'm using ant.design select component ("tags" or "multiple" mode) in a page, i want dropdown to be automatically closes after each selection. Now it remains open and i should click on other places in the page to close the dropdown list. import {…
7
votes
2 answers
6
votes
2 answers

How to make antd modal have rounded corners

It has been…

Sai Krishnadas
  • 2,863
  • 9
  • 36
  • 69
6
votes
2 answers

Ant design onFinish function with typescript; Type '(values: FormData) => void' is not assignable to type '(values: unknown) => void'

I have interface FormData, which is supposed to be same type as values that onFinish function receives, but when I put const onFinish = (values: FormData) => { I get error Type '(values: FormData) => void' is not assignable to type '(values:…
6
votes
2 answers

No such file or directory, when using Vite and Antd Pro Layout

No such file or directory, when using Vite and Antd Pro Layout This is file vite.config.ts: import { defineConfig } from 'vite'; import reactRefresh from '@vitejs/plugin-react-refresh'; import path from 'path'; import vitePluginImp from…
Thai Son
  • 91
  • 2
  • 3
6
votes
1 answer

AntD rowSelection functional Component

I'm trying to grab the single element key in the table. But I get undefined How can I grab the id? https://ant.design/components/table/#components-table-demo-expand-children const [select, setSelect] = useState({ selectedRowKeys: [], …
Shreyas Chorge
  • 127
  • 1
  • 6
6
votes
2 answers

How to align center text or div item with Ant Design Space in Reactjs?

How to align text or div item center horizontal with Space with Ant design ? Here is my code: import { Space } from 'antd' Hello
Tho Bui Ngoc
  • 763
  • 1
  • 11
  • 36
6
votes
1 answer

Antd v4: How to add nesting in ?

I am trying to create a custom grid like structure. The structure will consist of various rows and each row can have multiple columns. And each column will have 1-2 form fields. With Antd v4.2.0, we have component with helps us to…
Parth Mistry
  • 121
  • 1
  • 2
  • 7
6
votes
2 answers

how to Uncheck Checkbox.Group in Antd React.js

I have the following Code using https://ant.design/components/checkbox/, and Trying to uncheck when a checkbox has been checked. I don't want to check all if button is click, just Uncheck all or the one checkbox selected. constructor(props) { …
Mandoxsy
  • 103
  • 2
  • 3
  • 9
6
votes
3 answers

Is it possible to add an image to a cell Table in Ant Design Tables?

I am trying to create a column that in his entries will include a small picture and a name. How can I do so using Ant Design's table? https://ant.design/components/table/ I can't seem to find anything related in the docs or the examples.
5
votes
0 answers

How do I update my existing ant design uploaded image?

A user can upload multiple images in the website. Users can delete an image, this was solved easily because of a function provided by the antd. But there is no certain function to update the existing image in the list of images. Like the image that…
Burhan
  • 324
  • 2
  • 12
5
votes
4 answers

Is there a way to override the colors in Ant design Switch Component

i need to override the default blue (primary color) on Antd Switch Component when checked and change it to red color. is there a way i can do this? i have tried using style attribute but it didnt work.
Chisom Maxwell
  • 149
  • 2
  • 7
1
2
3
32 33