I suggest you ...

get_display() to get content (grid) body

On top of display() which output directly the grid. For ease of integration with other system, get_display() will return the html code of the grid to be output as part of a rendered page.

Similarly, get_header() to output the html code for <link> and <script>.

3 votes
Vote
Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
You have left! (?) (thinking…)
CK Ng shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

2 comments

Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
Submitting...
  • CK Ng commented  ·   ·  Flag as inappropriate

    just like jqGrid have in their jqSuite

    renderGrid( [string $tblelement = ''], [string $pager = ''], [boolean $script = true], [ $summary = null], [ $params = null], [boolean $createtbl = false], [boolean $createpg = false], [boolean $echo = true] )

    boolean $script: if set to true add a script tag before constructin the grid.
    boolean $echo: if set to false the function return the string representing the grid

    so
    display([boolean $script = true], [boolean $echo = true])

  • CK Ng commented  ·   ·  Flag as inappropriate

    (the tags was hidden)
    ... get_header() to output the html code for link and script tags.

Feedback and Knowledge Base