5

I want to do like this in webpack bootstrap 4 env :

http://v4-alpha.getbootstrap.com/components/forms/#custom-forms

File browser

<label class="custom-file">
  <input type="file" id="file" class="custom-file-input">
  <span class="custom-file-control"></span>
</label>

How to override the "placeholder" and "button-label" value

1 Answer 1

8

Those values are from CSS:

.custom-file-control:lang(en)::after {
  content: "Choose file...";
}

.custom-file-control:lang(en)::before {
  content: "Browse";
}
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.