nativescript-floatingactionbutton
nativescript-floatingactionbutton copied to clipboard
text is not working.
<FAB row="0" col="1" text="" rippleColor="#f1f1f1" class="fab-button" ></FAB>
I tried font-awesome text but it's not showing .
I don't believe text
has ever been supported with this plugin, due to the native classes not providing that OOTB. It is possible to achieve this but would require an enhancement to the source. Would be happy to help with any PRs to make this happen.
However, if you're on a time crunch, making circular buttons in NS is simple with the border-radius
styling option and from there you could put text inside the standard NS button.
Oh wow yeah you're right. Guess I've never used it 😁. Then seems like a bug or usage issue. Does that icon work in a simple Label? If so then we can confirm you have the font loaded and the CSS for the font correct.
Yeah it's working perfectly with Label but not with FAB
It does work for me. I use text.decode=""
and Nativescript-vue
Yeah it's working perfectly with Label but not with FAB
You forgot to add required 'fas' or 'far' class which is needed for FontAwesome icons.