notification tablewindow
Posted: 15 June 2014, 09:16
Hi,
I need to show additional information in a scoring dialog. According to the tutorial, I used the following code :
$this->notifyAllPlayers( "tableWindow", '', array(
"id" => 'finalScoring',
"title" => clienttranslate("Title of the scoring dialog"),
"table" => $table,
"header" => '<div>Some header</div>',
"footer" => '<div>Some footer</div>',
"closelabel" => clienttranslate( "Closing button label" )
) );
And I want to put my additional information in "header" or "footer". But nothing appears in my page.
I just found in the DOM the following thing :
<div class="notifparams" id="debugnotif_92">{"closelabel":"Closing button label","footer":"<div>Some footer</div>","id":"finalScoring","title":"Title of the scoring dialog","table":[null,[{"str":"Points de cartes","args":[]},100,0,0,100,0,0]],"header":"<div>Some header</div>"}</div>
Is this functionnality really working well ?
Thanks in advance for your help,
Gabriel
I need to show additional information in a scoring dialog. According to the tutorial, I used the following code :
$this->notifyAllPlayers( "tableWindow", '', array(
"id" => 'finalScoring',
"title" => clienttranslate("Title of the scoring dialog"),
"table" => $table,
"header" => '<div>Some header</div>',
"footer" => '<div>Some footer</div>',
"closelabel" => clienttranslate( "Closing button label" )
) );
And I want to put my additional information in "header" or "footer". But nothing appears in my page.
I just found in the DOM the following thing :
<div class="notifparams" id="debugnotif_92">{"closelabel":"Closing button label","footer":"<div>Some footer</div>","id":"finalScoring","title":"Title of the scoring dialog","table":[null,[{"str":"Points de cartes","args":[]},100,0,0,100,0,0]],"header":"<div>Some header</div>"}</div>
Is this functionnality really working well ?
Thanks in advance for your help,
Gabriel