All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.primefaces.menu.menu.breadcrumb.js Maven / Gradle / Ivy

There is a newer version: 14.0.0
Show newest version
/**
 * __PrimeFaces BreadCrumb Widget__
 * 
 * BreadCrumb provides contextual information about the page hierarchy.
 *
 * @prop {JQuery} seoScript The script element for the seo.
 * 
 * @interface {PrimeFaces.widget.BreadCrumbCfg} cfg The configuration for the {@link  BreadCrumb| BreadCrumb widget}.
 * You can access this configuration via {@link PrimeFaces.widget.BaseWidget.cfg|BaseWidget.cfg}. Please note that this
 * configuration is usually meant to be read-only and should not be modified.
 * @extends {PrimeFaces.widget.BaseWidgetCfg} cfg
 * 
 * @prop {boolean} cfg.seo Used to produce an Advanced SEO structure on the page. Default is false.
 */
PrimeFaces.widget.BreadCrumb = PrimeFaces.widget.BaseWidget.extend({

    /**
     * @override
     * @inheritdoc
     * @param {PrimeFaces.PartialWidgetCfg} cfg
     */
    init: function(cfg) {
        this._super(cfg);

        if (this.cfg.seo) {
            this.seoScript = $(this.jqId + '_seo');
        }
    },

    /**
     * @override
     * @inheritdoc
     * @param {PrimeFaces.PartialWidgetCfg} cfg
     */
    refresh: function(cfg) {
        if (this.seoScript) {
            this.seoScript.remove();
        }
        
        this._super(cfg);
    }
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy