I am attempting to have a rule system implemented for determining if an extension of container is visible or not. The basic idea is in the code below.

Code:
Ext.define('ContainerViewRules',{
	extend: 'Ext.Mixin',
	mixinConfig: {
	    before: {
	        render: 'viewRuleCheck'    
	    }
	},
	viewRuleCheck: function(){
		if(!this.rules || !this.rules.view) return;
		var vm = this.lookupViewModel();
		this.hidden != vm.deriveRule(this.rules.view);
	}
});
This code does work for the basic container, but not carried onto textfields either way I do it.

Works:
Code:
Ext.Container.mixin('viewRules', ContainerViewRules);
Does not work:
Code:
Ext.form.field.Text.mixin('viewRules', ContainerViewRules);
Did I do something wrong in my approach?