Matheus Hatje
Matheus Hatje

Reputation: 987

Extjs: Override pivot.plugin.configurator setting's field

I'm trying to override the pivot.plugin.configurator so i can change the Setting's texts, i already override the language of the configurator itself doing:

    override: 'Ext.pivot.plugin.configurator.Panel',
    panelAllFieldsTitle:'Todos os Campos',
    panelAggFieldsTitle:'Valores',
    panelTopFieldsTitle:'Colunas',

But i can't find a way to change the texts of the Settings (when the user click on the cog in the configurator)

Upvotes: 0

Views: 159

Answers (2)

Rodrigo Martincic
Rodrigo Martincic

Reputation: 1

Or you can do a define in the project, the EXTJS language file is wrong, do it like this

Ext.define('Ext.locale.pt_BR.pivot.plugin.configurator.window.Settings', {
    override: 'Ext.pivot.plugin.configurator.window.Settings',

    okText: 'Ok',
    cancelText: 'Cancelar',
    layoutText: 'Layout',
    outlineLayoutText: 'Esboço',
    compactLayoutText: 'Compacto',
    tabularLayoutText: 'Tabular',
    firstPositionText: 'Primeiro',
    hidePositionText: 'Ocultar',
    lastPositionText: 'Último',
    rowSubTotalPositionText: 'Posição subtotal da linha',
    columnSubTotalPositionText: 'Posição subtotal da coluna',
    rowTotalPositionText: 'Posição total da linha',
    columnTotalPositionText: 'Posição total da coluna',
    showZeroAsBlankText: 'Mostrar zero como em branco',
    yesText: 'Sim',
    noText: 'Não'
});

Upvotes: 0

scebotari66
scebotari66

Reputation: 3480

You need to override the title config of the Ext.pivot.plugin.configurator.window.Settings class in order to achieve this.

EDIT

It seems that title does not get overridden like so, although other configs do. One workaround is to override the initComponent method and set the title there:

initComponent() {
    this.callParent();
    this.setTitle('DESIRED TITLE');
},

Upvotes: 0

Related Questions