Coder Social home page Coder Social logo

Comments (6)

bradmartin avatar bradmartin commented on June 27, 2024

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.

from nativescript-floatingactionbutton.

Devendra0110 avatar Devendra0110 commented on June 27, 2024

Well, it's given in the API.

Allows to use text instead of image

from nativescript-floatingactionbutton.

bradmartin avatar bradmartin commented on June 27, 2024

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.

from nativescript-floatingactionbutton.

Devendra0110 avatar Devendra0110 commented on June 27, 2024

Yeah it's working perfectly with Label but not with FAB

from nativescript-floatingactionbutton.

dosomder avatar dosomder commented on June 27, 2024

It does work for me. I use text.decode="" and Nativescript-vue

from nativescript-floatingactionbutton.

CatchABus avatar CatchABus commented on June 27, 2024

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.

from nativescript-floatingactionbutton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.