TIWCGJQDropDown.OnGetDropDownData Property

The OnGetDropDownData event takes place when DropDown gets data from a certain Term

Namespace: IWCGJQDropDown
published
 property OnGetDropDownData;

Property Value

Type: Void

 

Example of usage:

begin
  AJSon:= TSuperObject.Create(stArray);
  AJson.AsArray.Add(SO('Item 1'));
  AJson.AsArray.Add(SO('Item 2'));
  AJson.AsArray.Add(SO('Item 3'));
end;
Example of usage with "Caption" and "Value": 
var
  I: Integer;
  ItemJSon: ISuperObject;
begin
  AJSon:= TSuperObject.Create(stArray);
  for I := 1 to 5 do
  begin
    ItemJSon:= SO();
    ItemJSon.S['value']:= 'item' + IntToStr(i);
    ItemJSon.S['label']:= 'My Item ' + IntToStr(i);
    AJSon.AsArray.Add(ItemJSon);
  end;
end;