0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Nuxt.jsでb-table-input内のPlaceholderにfontawesomeを使いたいができない場合はどうするのか?

Last updated at Posted at 2022-06-02

そこそこ調べましたが、たぶんplaceholderにfontawesome5以降のunicodeはnuxt.jsなどのSSRでは無理っぽいので、
bootstrapVueの公式に書いてある書き方を少し変えて書いてみました。
すごい簡単です。

<b-input-group>
 <b-input-group-prepend is-text>
  <em class="fas fa-search fa-lg search-icon-color"></em>&nbsp;&nbsp;
  </b-input-group-prepend>
  <b-form-input type="search" placeholder="検索条件を入力してください" v-model="kensaku"></b-form-input>
</b-input-group>

スペースを開けたり、検索条件のv-model名は適宜適当なものを入力してください。

参考URL

Icons | BootstrapVue - input-groups

画像

bootstrapVue

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?