Skip to content

Conversation

@vladimirbackendless
Copy link
Collaborator

No description provided.

@v-excelsior v-excelsior changed the title Update README.md Autocomplete Docs Review Apr 5, 2023
Comment on lines +9 to +13
All options are stored in a JSON object, that can be set either by using UI-Builder settings or Codeless Logic. You can also group options by passing a list containing JSON objects to the component:

<p align="center">
<img src="./example-images/autocomplete_component_1.png" alt="Array of objects" width="780"/>
</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move it to example section.

Also will be good to change image of JSON for real text JSON hidden under spoiler.

<img src="./example-images/autocomplete_component_1.png" alt="Array of objects" width="780"/>
</p>

Once the option is selected from the list it gets saved to the local variable **Input Value** in the Codeless Logic. Suppose you selected the "Basketball" option from the list in the e-commerce store, then this value can be used later on to load and display products of a specific category ("Basketball") on the page. You must use the **On Changed Event** handler to get the selected value.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

local variable Input Value

It's not completely correct. Better to say something like: we could access changed value from input value context codeless block

<img src="./example-images/autocomplete_component_1.png" alt="Array of objects" width="780"/>
</p>

Once the option is selected from the list it gets saved to the local variable **Input Value** in the Codeless Logic. Suppose you selected the "Basketball" option from the list in the e-commerce store, then this value can be used later on to load and display products of a specific category ("Basketball") on the page. You must use the **On Changed Event** handler to get the selected value.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suppose you selected the "Basketball"

Better to use options that we already use before(months from another example).

<img src="./example-images/autocomplete_component_1.png" alt="Array of objects" width="780"/>
</p>

Once the option is selected from the list it gets saved to the local variable **Input Value** in the Codeless Logic. Suppose you selected the "Basketball" option from the list in the e-commerce store, then this value can be used later on to load and display products of a specific category ("Basketball") on the page. You must use the **On Changed Event** handler to get the selected value.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must use the On Changed Event

Typo - Changed -> Change

Comment on lines +17 to +19
<p align="center">
<img src="./example-images/autocomplete_component_2.png" alt="On Changed Handler" width="780"/>
</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not completely sure if this image is useful. But if you think so, we should change width property(or remove it) in markdown. For now it looks not pretty good.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants