devopsinthecloud icon indicating copy to clipboard operation
devopsinthecloud copied to clipboard

Custom Chooser view example.

Open csfelipe opened this issue 8 years ago • 5 comments

Hi.

I'm trying to replicate "the marking someone in a post comment" situation. When you have a keyboard up and there's a tableview that rises with the possible entities to mark. (Image reference: http://imgur.com/a/w58jK)

Any insights are welcomed. The documentation is quite scarce.

Thanks!

csfelipe avatar Jul 16 '17 22:07 csfelipe

@csfelipe you can initialize HKWMentionsPlugin with customLockBottomNoArrow chooser mode, and then configure the callback where you can place chooser view anywhere you want:

mentionsPlugin.setChooserTopLevel(messageAccessoryView.mentionsContainer) {  chooserView in
    // setup `chooserView` constraints
}

almas73 avatar May 30 '18 20:05 almas73

@almas73 Custom views can be added. But how to add tags to this TextView?

yanyuanjie avatar Aug 06 '18 07:08 yanyuanjie

I’m still unable to make exact look and feel just like linkedIn @mention view. Even though added custom view it lies inside the textview but I want to set textview size 50 in commentbox so whenever I decrease textview size it decreases chooserview automatically. I have tried lot many soutions like disabling constraints,set frame of chooserview, removed parent view , set chooser top level,adjust mode without arrow and much more still I’m not able to achieve http://imgur.com/a/w58jK If anybody has achieved please share the code.

JaniPurvi avatar Sep 23 '18 12:09 JaniPurvi

Yup, our mentions view has a lot of LinkedIn specific styling and behavior on top of it. What exactly can we help clarify here? Is there something specific you're trying to do from that view?

dgattey avatar Mar 01 '19 08:03 dgattey

@csfelipe you can initialize HKWMentionsPlugin with customLockBottomNoArrow chooser mode, and then configure the callback where you can place chooser view anywhere you want:

mentionsPlugin.setChooserTopLevel(messageAccessoryView.mentionsContainer) {  chooserView in
    // setup `chooserView` constraints
}

Can you please share some example code to set the custom frames for chooser view?

dineshiOSDev avatar Jul 10 '21 09:07 dineshiOSDev