-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocomplete / Async Retrieval for regionClsList #38
Comments
This isn't possible at the moment. But it's a good idea, so I'm guessing you have a really big list of classes? |
@seveibar yes - we have over 33K devices (all of our images will be of these various devices) to filter down from with an api call |
I think you might be interested in what @ThibautGeriz is working on here: #32 Basically you could have a custom form with autocomplete. If it works for you, I can probably accelerate the merging process on that PR. Let me know |
That's awesome - I will pull it down and try this out today to see if we can work with this. I see that you merged the branch (but not released just yet) - that's fantastic. Thanks for letting me know! I'll keep an eye out on the released build too to see if I can install from npm. :) |
Hey @stajahlee, I've merged the Here's an example that produces the following screenshots (also can be seen in src/Annotator/index.story.js) const MyComponent = () => {
const images = [
exampleImage,
"https://loremflickr.com/100/100/cars?lock=1",
"https://loremflickr.com/100/100/cars?lock=2"
]
const NewRegionEditLabel = ({
region,
editing,
onDelete,
onChange,
onClose,
onOpen
}) => {
return (
<div style={{ backgroundColor: "white" }}>
I'm the closed part
<div style={{ display: editing ? "block" : "none" }}>
I'm the part that shows when it's being edited!
<button onClick={() => onDelete(region)}>Delete This Region</button>
<button
onClick={() => onChange({ ...region, cls: "awesome-value" })}
>
Set Classification to "awesome-value"
</button>
<button onClick={() => onClose(region)}>Close the edit mode</button>
</div>
</div>
)
}
return (
<Annotator
onExit={actionAddon("onExit")}
labelImages
selectedImage={images[0]}
RegionEditLabel={NewRegionEditLabel}
images={[
{
src: exampleImage,
name: "Seve's Desk"
},
{
src: images[1],
name: "Frame 0036"
},
{
src: images[2],
name: "Frame 0037"
}
]}
/>
)
} |
@seveibar Thank you so much for releasing this - it is exactly what we need for this concern and my api call is working swimmingly. Unfortunately I have a new error when clicking the Settings button (in the Header). It crashes the application with the error:
I can make a new issue for this unless it is existing behavior you are aware of (for my case I really would love to just have all of the Header Buttons be optional with a prop to the Annotate component like you have for enabledTools. We don't really need to allow our users to have these additional settings or fullscreen option. |
Let's split this into two issues, both of which can be solved:
Now there are a couple reasons why the error in (2) might be happening. Keep in mind, it doesn't seem to reproduce on the demo playground. To fix this I'd need a sample github repository that shows the issue (that should then be posted as a new issue). I'm hoping you have two versions of react. Run |
I do see
when I run this command. UPDATE: |
As for the
|
I'll add some contributing/development info on the wiki tonight :) Yes the main way to run the test the library is with |
Ill close this issue because we solved the original problem, but feel free to open new ones for problems or feature proposals :) |
Thank you so much for everything! It really is awesome. |
I need to do something like:
where given the input typed into the select 'value container' I can perform an api call filtered on the input (our potential items that need to be available to that dropdown is a very, very large list)
Is this possible at the moment?
The text was updated successfully, but these errors were encountered: