Closed 4mit closed 4 years ago
Since 1.7.21 we've splitted ana;ytics package
Instead of
<link rel="stylesheet"
type="text/css"
href="https://unpkg.com/survey-analytics/survey.analytics.css" />
you need to use
<link rel="stylesheet"
type="text/css"
href="https://unpkg.com/survey-analytics/survey.analytics.datatables.css" />
and https://unpkg.com/survey-analytics@1.7.23/survey.analytics.datatables.js for the code reference.
As well as root name has been changed to the SurveyAnalyticsDatatables
got it
DataTables will be now SurveyAnalyticsDatatables ?? it means below var surveyAnalyticsDataTables = new this.SurveyAnalytics.DataTables(panel1Node, survey, normalizedData); surveyAnalyticsDataTables.render();
will be now var surveyAnalyticsDataTables = new this.SurveyAnalytics.SurveyAnalyticsDatatables(panel1Node, survey, normalizedData); surveyAnalyticsDataTables.render();
should i do this ?
This means
var surveyAnalyticsDataTables = new this.SurveyAnalyticsDatatables.Datatables(survey, normalizedData);
surveyAnalyticsDataTables.render(panel1Node);
You can check this live sample on our site - https://surveyjs.io/Examples/Analytics?id=nps-table
Thanks that worked for me .
facing issue with preview page css
Hello,
Did you add https://surveyjs.azureedge.net/1.7.25/survey.css stylesheet on your page?
Thanks, Dmitry SurveyJS Team
Ah , worked thanks .
using Angular10 with webpack4
The css to datatable is not getting applied my index.html is below `
And i'm loading below js dynamically on windonw.onload (also i tried moving below js in index.html i got the same issue )
this.loadCSS.loadExternalStyles('https://surveyjs.azureedge.net/1.7.23/survey.analytics.datatables.css'); this.loadCSS.loadExternalStyles('https://cdn.datatables.net/buttons/1.6.2/css/buttons.dataTables.min.css'); this.loadCSS.loadExternalStyles('https://cdn.datatables.net/colreorder/1.5.2/css/colReorder.dataTables.min.css'); this.loadCSS.loadExternalStyles('https://cdn.datatables.net/select/1.3.1/css/select.dataTables.min.css');