Skip to Content
avatar image
Former Member

How to use hard-code text in Formatter'state..

Hi Experts

I am using formatter to show the status. But when i try to write some hard code value ( Overall Status) then it is also come in status color.

I want to decolor the hard-code text Overall Status.?

how can it be possible??

I am going to attach my code.

  firstStatus:[

                     {

                      text :"OverallStatus:  {OverallStatus}",

                      state: {

                      path:"OverallStatus",

                      formatter:function(id)

              {

              if(id == "Completely proc")

              {

              return "Success"

              }

              if(id=="Not yet process")

              {

              return "Error"

              }

              if(id=="Partially proce")

              {

              return "Warning"

              }

              } }

thanks and regards

Vishnu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 20, 2015 at 11:37 AM

    Hi Vishnu,

    Will this help? JS Bin - Collaborative JavaScript Debugging

    Regards,

    Sai Vellanki.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2015 at 06:38 AM

    Hi Vishnu ,

    You can use path,formatter function for this.check the example

    JS Bin - Collaborative JavaScript Debugging

    Regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rajeesh

                     

         I want to write hard code text  (Overall Status) before Status(shipped / open / in processed) .

      But hard code text also come in the same color like Status. and I want to decolor it.Just look at screenshot , i already attach original post.

      Could you please help me out..

      thanks and regards

      vishnu