BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
require_once 'EJ/AutoLoad.php';
$Json = array();
$rangeSetting = new EJ\Spreadsheet\RangeSetting();
$rangeSetting->dataSource($Json);
$rangeSettings = array($rangeSetting);
$sheet = new EJ\Spreadsheet\Sheet();
$sheet->rangeSettings($rangeSettings);
$sheet->columnWidth(100);
$sheet->frozenRows(1);
$sheets = array($sheet);
$menu= new EJ\Spreadsheet\MenuSetting();
$menu->isAppend(false);
$scroll = new EJ\Spreadsheet\ScrollSetting();
$scroll->height(1000);
$spreadsheet = new EJ\Spreadsheet('Spreadsheet');
echo $spreadsheet->sheets($sheets)->scrollSettings($scroll)->render();
echo $spreadsheet->showRibbon(false)->sheets($sheets)->scrollSettings($scroll)->render()
|
echo $spreadsheet -> sheets($sheets) -> scrollSettings($scroll) -> loadComplete('loadComplete') -> render();
<script>
loadComplete: function () {
$("#" + this._id + "_Ribbon").data("ejRibbon").collapse();
// $("#" + this._id + "_Ribbon").data("ejRibbon").expand(); for expand the menu bar
}
</script>
|