ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: lsl on June 05, 2015, 03:04:08 pm

Title: How can I default a value in the textbox of a toolbar
Post by: lsl 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?

Title: Re: How can I default a value in the textbox of a toolbar
Post by: paramvir on June 05, 2015, 05:09:02 pm
it can be done with attr property.

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