.seoUiSeoCheckWidget()
Categories: UI
.seoUiSeoCheckWidget( [ options ] )
Subclass: de_epages
Plugin: de_epages.seo.ui.seoCheckWidget
Description: SEO check dialog widget to show SEO issues from different SEO test and ratings for multiple languages.
-
.seoUiSeoCheckWidget( [ options ] )
version added: 6.12.0options A map of additional options pass to the method.
The .seoUiSeoCheckWidget()
method adds content handling for a given ep.ui.dialog instance.
The widget relies on an existing dialog instance and handles the content of the dialog which is supplied from the server via an ajax request. It also changes the dialog title bar and cares for the storage of the calculated SEO quality factor via another ajax request to the server.
-
Apply .seoUiSeoCheckWidget() to a ep.ui.dialog instance.
Code:
var dialog; if(!dialog) { dialog = de_epages('<div>') .uiDialog({ autoOpen: false, title: '<span class="ep-SEOGaugeWidgetTitle">{SEOCheckDialogTitle}</span>', buttons: { "Close": { text: '{SEOCheckDialogCloseButton}', click: function() { ep(this).uiDialog("close");} }} }); dialog.on("SEOCheckNewQuality", function(event, newValue) { de_epages('#SEOGaugeWidget').seoUiSeoGaugeWidget('Instance').setPercentage(newValue); }); } dialog.seoUiSeoCheckWidget({ 'currentSEOQuality' : 15 }); ep(dialog).find('.ep-metaparse').metaparse(); ep(dialog).uiDialog('Instance').uiDialog.find('.ep-metaparse').metaparse(); ep(dialog).uiDialog('open');