Author Topic: How can I default a value in the textbox of a toolbar  (Read 2429 times)

lsl

  • Pro Deluxe
  • Jr. Member
  • *
  • Posts: 67
    • View Profile
How can I default a value in the textbox of a toolbar
« on: June 05, 2015, 03:04:08 pm »
I have a toolbar as follows,

 obj.toolbar= {items: [
          { type: '<span> Freight Payable at </span>' }
          ,{ type: 'textbox', cls: "xpayableat" }
        ]};


How can I default a value in the textbox?


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How can I default a value in the textbox of a toolbar
« Reply #1 on: June 05, 2015, 05:09:02 pm »
it can be done with attr property.

{ type: 'textbox', cls: "xpayableat", attr: "value='Hello'" }