How to use the catalog.label function in catalog

To help you get started, we’ve selected a few catalog examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aimeos / aimeos-core / admin / extjs / src / panel / catalog / TreeUi.js View on Github external
inspectCreateNode : function(attr) {

        attr.id = attr['catalog.id'];
        attr.label = attr['catalog.label'];
        attr.text = attr['catalog.id'] + " - " + attr['catalog.label'];
        attr.code = attr['catalog.code'];
        attr.status = attr['catalog.status'];
        attr.cls = 'statustext-' + attr.status;

        // create record and insert into own store
        this.store.suspendEvents(false);

        this.store.remove(this.store.getById(attr.id));
        this.store.add([new this.recordClass(attr, attr.id)]);

        this.store.resumeEvents();
    }
});
github aimeos / aimeos-core / client / extjs / src / panel / catalog / TreeUi.js View on Github external
inspectCreateNode : function(attr) {

        attr.id = attr['catalog.id'];
        attr.label = attr['catalog.label'];
        attr.text = attr['catalog.id'] + " - " + attr['catalog.label'];
        attr.code = attr['catalog.code'];
        attr.status = attr['catalog.status'];
        attr.cls = 'statustext-' + attr.status;

        // create record and insert into own store
        this.store.suspendEvents(false);

        this.store.remove(this.store.getById(attr.id));
        this.store.add([new this.recordClass(attr, attr.id)]);

        this.store.resumeEvents();
    }
});
github aimeos / ai-admin-jqadm / admin / jqadm / themes / catalog.js View on Github external
transformNodes : function(result) {

		root = {
			id: result.data.id,
			name: result.data.attributes && result.data.attributes['catalog.label'] || '',
			children: []
		};

		if(result.included && result.included.length > 0) {

			var getChildren = function(list, parentId) {
				var result = [];

				for(var i in list) {
					if(list[i].attributes['catalog.parentid'] == parentId) {
						result.push({
							id: list[i].id,
							name: list[i].attributes['catalog.label'],
							load_on_demand: list[i].attributes['catalog.hasChildren'],
							children: getChildren(list, list[i].id)
						});
github aimeos / ai-admin-jqadm / admin / jqadm / themes / product.js View on Github external
getLabel : function(idx) {

					var label = this.items[idx]['catalog.label'];

					if(this.items[idx]['catalog.code']) {
						label += ' (' + this.items[idx]['catalog.code'] + ')';
					}

					return label;
				},
github aimeos / aimeos-core / client / extjs / src / panel / product / UsedByCatalogListUi.js View on Github external
onOpenEditWindow : function(action) {
        var record = this.grid.getSelectionModel().getSelected();
        var parentRecord = this.catalogStore.getById(record.data[this.parentIdProperty]);

        parentRecord.data['status'] = parentRecord.data['catalog.status'];
        parentRecord.data['label'] = parentRecord.data['catalog.label'];
        parentRecord.data['code'] = parentRecord.data['catalog.code'];

        var itemUi = Ext.ComponentMgr.create({
            xtype : this.itemUiXType,
            domain : this.domain,
            record : action === 'add' ? null : parentRecord,
            store : this.catalogStore,
            listUI : this
        });

        itemUi.show();
    },
github aimeos / ai-admin-jqadm / admin / jqadm / themes / catalog.js View on Github external
"dataFilter": function(result) {
				var list = [];

				for(var i in result.included) {
					if(result.included[i].type !== 'catalog') {
						continue;
					}
					list.push({
						id: result.included[i].id,
						name: result.included[i].attributes['catalog.label'],
						load_on_demand: result.included[i].attributes['catalog.hasChildren'],
						children: []
					});
				}

				return list;
			},
			"dataUrl": function(node) {
github aimeos / aimeos-core / admin / extjs / src / panel / product / UsedByCatalogListUi.js View on Github external
onOpenEditWindow : function(action) {
        var record = this.grid.getSelectionModel().getSelected();
        var parentRecord = this.catalogStore.getById(record.data[this.parentIdProperty]);

        parentRecord.data['status'] = parentRecord.data['catalog.status'];
        parentRecord.data['label'] = parentRecord.data['catalog.label'];
        parentRecord.data['code'] = parentRecord.data['catalog.code'];

        var itemUi = Ext.ComponentMgr.create({
            xtype : this.itemUiXType,
            domain : this.domain,
            record : action === 'add' ? null : parentRecord,
            store : this.catalogStore,
            listUI : this
        });

        itemUi.show();
    },