Thank you! I found a solution I updated to the dev-master version on the composer and now it works.
In the last stable version of yii2-bootstrap the we can’t change some properties, but in the current dev-master version everything works. I hope they release a stable version with the current code.