Elements - <miso-ask>


A container element for the ask workflow.

  • Other elements have to be placed inside these elements to be associated with the workflow.
  • There can be multiple container elements that associate to the same workflow in a page.
<miso-ask>
<miso-query></miso-query>
<miso-answer></miso-answer>
<!-- ... -->
</miso-ask>

Components

The following table lists the components that are available in the container. Each component either associates to a property in the API response or some input element.

Tag Property in API response Description
<miso-query> --
<miso-feedback> --
<miso-question> question
<miso-answer> answer
<miso-affiliation> *
<miso-sources> sources
<miso-related-resources> related_resources
<miso-query-suggestions> followup_questions

Attributes

parent-question-id

Associate to a follow-up question workflow by specifying the parent-question-id attribute:

<miso-ask parent-question-id="...">
</miso-ask>

Control Miso logo display.

By default, Miso logo is appended at the end of the container that contains the main data component (<miso-answer>) when data is ready. You can control the logo display by setting the logo attribute on the container element.

<miso-ask logo="false">
<!-- ... -->
</miso-ask>
Value Default Behavior
true Miso logo is appended at the end of container when data is ready.
false Miso logo is not displayed.
auto Miso logo is appended at the end of container when data is ready only if it contains the main component. (e.g. <miso-answer>)