Interface

Hierarchical

Das Hierarchical Modul stellt eine Baumstruktur dar

{
    "module": {
        "prototype": "Alvine.Platform.Console.Hierarchical",
        "location": "/app/console/hierarchical.html"
    },
    "arguments": {
        "title": "i18n:categories",
        "urls": {
            "list": "http://localhost/api/commerce/item/catalog/category?parentCID=${id}",
            "search": "http://localhost/api/commerce/item/catalog/category/search",
            "update": "http://localhost/api/commerce/item/catalog/category",
            "add": "http://localhost/api/commerce/item/catalog/category",
            "object": "http://localhost/api/commerce/item/catalog/category/${cid}",
            "delete": "http://localhost/api/commerce/item/catalog/category/${cid}"
        },
        "libs": [
            "/app/console/js/alvine.package.console.platform.form.categories.js"
        ],
        "controldataset":"/app/console/item/catalog/resource/category.json",
        "form": "Alvine.Package.Console.Platform.Form.Category.DetailForm",
        "locales": [
            "/app/console/item/catalog/resource/"
        ],
        "mapping": {
            "key": "cid",
            "label": "name",
            "parent": "parentCID"
        }
    },
    "handler": "/item/catalog/categories",
    "navigation": {
        "label": "i18n:categories",
        "mountpoint": "main.menu.products"
    }
}

Methoden

Eine Methode die eine UI COntrol zurück liefert und Input Felder bereitstellt um ein Dataset zu manipulieren muss der Schlüssel auf die Regestiy über `self.parentDialog.getComponentRegistryKey();´ erfolgen