comprehensive-tomatoC
Refine3y ago
3 replies
comprehensive-tomato

show data in form

hi
I use the useForm hook to get the dataand I present it using
{...register("description")}
so this let me to present normal data like string number
but in case I want to present a list like products, how I can present list and edit the changes
  const {
      refineCore: { onFinish, formLoading },
      register,
      handleSubmit,
  } = useForm();

        <TextareaAutosize
          style={{
            width: "100%",
            background: "transparent",
            fontSize: "16px",
            borderColor: "rgba(0,0,0,0.23)",
            borderRadius: 6,
            padding: 10,
            color: "#919191", 
            direction: 'rtl', 
            unicodeBidi: 'plaintext'
          }}
          minRows={5}
          color="primary"
          id="outlined-basic"
          {...register("description")}
        />
Was this page helpful?