guptahanu / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 1 forks source link

DRAW_MODE_LINEAR for CustomSearchControl #482

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

This is a request to support linear draw mode on the CustomSearchControl.

Currently the CustomSearchControl does not implement DRAW_MODE_LINEAR.  The 
control uses the tabbed drawing layout, even if DRAW_MODE_LINEAR is specified 
in DrawOptions.

Example:

    var CSE_ID = 'XXXXXXXXXXXXXXXXXXXXX:xxxxxxxxxxx';

    var customSearchControl =
      new google.search.CustomSearchControl(CSE_ID);

    //  (The control will display:  CSE results,
    //   results from the following added searchers,
    //   and results for CSE Refinement Labels if any.)
    //
    customSearchControl.addSearcher(
      new google.search.WebSearch());
    customSearchControl.addSearcher(
      new google.search.BlogSearch());
    customSearchControl.addSearcher(
      new google.search.NewsSearch());

    var drawOptions = new google.search.DrawOptions();
    drawOptions.setDrawMode(
      google.search.SearchControl.DRAW_MODE_LINEAR);

    customSearchControl.draw('cse', drawOptions);
    //
    //  The CustomSearchControl uses tabbed mode.
    //  DRAW_MODE_LINEAR has no effect on the CustomSearchControl.

Original issue reported on code.google.com by omr99...@yahoo.com on 3 Jul 2010 at 6:37

GoogleCodeExporter commented 8 years ago

Original comment by jscud.w...@gmail.com on 7 Jul 2010 at 11:29

GoogleCodeExporter commented 8 years ago
Will anything be done about this?

Original comment by lotte....@live.com on 28 Jul 2010 at 9:17