Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

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

    Hi Vishnu,

    Will this help? JS Bin - Collaborative JavaScript Debugging

    Regards,

    Sai Vellanki.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.