2

I am using this code for dropdown:

<b-dropdown size="sm" text="Update" split class="m-2">
                    <b-dropdown-item-button>Action</b-dropdown-item-button>
                    <b-dropdown-item-button>Another action</b-dropdown-item-button>
                    <b-dropdown-item-button>Something else here...</b-dropdown-item-button>
                  </b-dropdown>

How do I update the "text" item dynamically?

3
  • {{ myText }}? Commented Mar 19, 2020 at 15:29
  • @depperm No, it doesn't work, I have already tried. Commented Mar 19, 2020 at 15:30
  • it doesn't work how? was there an error? did it not update like you thought? is myText a prop or computed prop? Commented Mar 19, 2020 at 15:32

1 Answer 1

5

It works if i put a colon infront of text="text"

<b-dropdown size="sm" :text="text" split class="m-2">
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.