Thanks a lot, is it not possible to add from Java? It would be nice if this feature is provided from server side.
wastemails ( 2020-12-12 09:06:05 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Please help out how to add custom button/label to formula bar in keikai spreadsheet??
Here an example adding 2 custom buttons to the formulabar ... not styled yet, just he buttons and event firing
<zk>
<script><![CDATA[
zk.afterLoad('zss', function() {
var xFormulabarCenterCave = {};
zk.override(zss.FormulabarCenterCave.prototype, xFormulabarCenterCave, {
$init : function(wgt) {
xFormulabarCenterCave.$init.apply(this, arguments);
this.appendChild(this.customMoney = new zss.FormulabarButton({
iconSclass: 'z-icon-money',
label: 'Money',
listeners: {onClick: this.handleMoneyClicked.bind(this)}}));
this.appendChild(this.customDate = new zss.FormulabarButton({
iconSclass: 'z-icon-calendar',
label: 'Date',
listeners: {onClick: this.handleDateClicked.bind(this)}}));
},
handleDateClicked: function(event) {
this._wgt.fire('onFormulabarDateClicked', null, {toServer:true});
},
handleMoneyClicked: function(event) {
this._wgt.fire('onFormulabarMoneyClicked', null, {toServer:true});
},
redraw: function (out) {
var uid = this.uuid,
zcls = this.getZclass(),
html = '<div id="' + uid + '">';
html += (this.editor.redrawHTML_() +
'<div id="' + uid + '-expandbtn" class="' + zcls + '-colbtn">' +
this.expandBtn.redrawHTML_() +
this.customMoney.redrawHTML_() +
this.customDate.redrawHTML_() +
'</div></div>');
out.push(html);
},
});//zk.override
});//zk.afterLoad
]]></script>
<spreadsheet showToolbar="true" showFormulabar="true" height="100%"
onFormulabarDateClicked="Clients.log(event.getName())"
onFormulabarMoneyClicked="Clients.log(event.getName())"
/>
</zk>
result:
Thanks a lot, is it not possible to add from Java? It would be nice if this feature is provided from server side.
wastemails ( 2020-12-12 09:06:05 +0800 )editAsked: 2020-12-07 21:57:28 +0800
Seen: 6 times
Last updated: Dec 11 '20
zk-keikai-How to auto fit column width based on text
zk-keikai-ClipboardPateEvent-called twice
zk-springboot-with-security-Error in CSP Header
how to use/configure secured websocket (wss)?
bug with intboxes on mobile devices
zk-keikai- update multiple cells parallel at same time asynchronously
Reference a spring bean from VariableResolver