<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">This is interesting! New widgets are cool, but more configurations are way more cooler.<br />
<br />
Any thoughts on how can we customise more? I changed some core files and database to have role based dashboards… But you need to be tetchy to create, It’d be cool if widget’s could have sharing rules and roles… </div>
</div>
<div name="messageSignatureSection"><br />
<div class="matchFont"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Best Regards,</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" />
<b style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Sukhdev Mohan</b><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> | </span><b style="caret-color: rgb(0, 0, 0);"><font color="#996633">Software Developer</font></b></div>
</div>
<div name="messageReplySection">On 23 Jun 2021, 12:07 +0200, Alan Lord <alanslists@gmail.com>, wrote:<br />
<blockquote type="cite" style="border-left-color: grey; border-left-width: thin; border-left-style: solid; margin: 5px 5px;padding-left: 10px;">You cannot define a default widget size.<br />
<br />
The Vtiger_Widget_Model class is initially instantiated from the<br />
Vtiger_Dashboard_Model by calling:<br />
<br />
<blockquote type="cite">Vtiger_Widget_Model::getInstanceFromValues($row);<br /></blockquote>
<br />
This method does not support loading of inherited classnames:<br />
<br />
https://code.vtiger.com/vtiger/vtigercrm/blob/master/modules/Vtiger/models/Widget.php#L126<br />
<br />
Once the widget data is loaded onto the Dashboard, you can then use your<br />
own inherited Class as the Widget Model is loaded again, from the<br />
MyModule/dashboards/MyModule_CustomWidget_Dashboard class.<br />
<br />
But you cannot change the initial default sizing without changing the<br />
core Vtiger_Widget_Model class.<br />
<br />
Try it ;-)<br />
<br />
Al<br />
<br />
PS: If you get bored take a look eCharts:<br />
https://echarts.apache.org/examples/en/index.html<br />
<br />
<br />
On 23/06/2021 10:49, Angelo Paglialonga wrote:<br />
<blockquote type="cite">Hi Alan you can bypass such limitations (title position, whatever option<br />
you need) , even add more widget types like gauges by including in your<br />
custom module a new vtJqPlotInterface, copy and paste from<br />
libraries/jquery/VtJqplotInterface.js<br />
and add/modify for every widget type all options you need.<br />
<br />
I hope that helps you!<br />
<br />
<br />
_______________<br />
<br />
Angelo Paglialonga<br />
Consulente per soluzioni CRM ad alto ROI.<br />
<br />
Telefono: 3386077866<br />
Skype: angelo.paglialonga<br />
Web: https://www.angelopaglialonga.com <https://www.angelopaglialonga.com><br />
<br />
<br />
<br />
<blockquote type="cite">Il giorno 23 giu 2021, alle ore 11:40, Alan Lord <alanslists@gmail.com<br />
<mailto:alanslists@gmail.com>> ha scritto:<br />
<br />
On 23/06/2021 10:06, Angelo Paglialonga wrote:<br />
<blockquote type="cite">Could we add new dashboards?<br /></blockquote>
<br />
You can add new widgets but there are some limitations:<br />
<br />
https://code.vtiger.com/vtiger/vtigercrm/issues/1026<br />
<https://code.vtiger.com/vtiger/vtigercrm/issues/1026><br />
<br />
Al<br />
<br />
_______________________________________________<br />
http://www.vtiger.com/<br /></blockquote>
<br />
<br />
_______________________________________________<br />
http://www.vtiger.com/<br />
<br /></blockquote>
_______________________________________________<br />
http://www.vtiger.com/<br /></blockquote>
</div>
</body>
</html>