amis icon indicating copy to clipboard operation
amis copied to clipboard

Open drawer from picker

Open abasse opened this issue 5 years ago • 6 comments

Is it possible to open a drawer from within the picker? eg. clicking on the value ("b" in the example below) image

I would like to show a form in the drawer that allow the user to edit the fields of the "B" relationship entry.

谢谢你的帮助

André

abasse avatar Mar 04 '21 18:03 abasse

It's not supported right now, but we will consider this feature in 1.1.5

2betop avatar Mar 05 '21 04:03 2betop

That would be awesome!

Another related question, can we use lodash in the initAPI URL field?

abasse avatar Mar 05 '21 05:03 abasse

no we can't, but we got a lots of filters may be help. eg. ${xxx|url_encode} ${items|unique:name}.

If it's not enough, you can write a filter by your own. like:

import {registerFilter} from 'amis';

registerFilter('my-replace', (input: string, search: string, repalceWith) =>
  typeof input === 'string' ? input.replace(search, repalceWith) : input
);

2betop avatar Mar 06 '21 03:03 2betop

Any chance to get this into 1.1.6?

abasse avatar Mar 29 '21 16:03 abasse

Hey guys, any update on this? It would be great if you could open a form to the related field from the picker.

Is it possible to open a drawer from within the picker? eg. clicking on the value ("b" in the example below) image

I would like to show a form in the drawer that allow the user to edit the fields of the "B" relationship entry.

谢谢你的帮助

André

Hey guys, any update on this? It would be great if you could open a form to the related field from the picker.

abasse avatar May 31 '22 08:05 abasse

@2betop Please see PR.

abasse avatar Aug 23 '22 15:08 abasse