freeipa/install/ui/doc
Petr Vobornik 74b7c00365 webui: extract header and action logic from facet to separate mixins
Into:
* ActionMixin
* HeaderMixin

It is supposed to be used as a mixin classes to facet.Facets. In long
term it should replace/serve as a base class for facet.facet.

e.g:
var SomeFacet = declare([Facet, ActionMixin, HeaderMixin], {
	foo: function() {}
});

Then following spec can be used:

some_facet_spec = {
    name: 'some',
    label: 'Some Facet',
    tab_label: 'Some Facet',
    facet_groups: [foo.bar_facet_group],
    facet_group: 'search',
    actions: ['refresh'],
    control_buttons: [
        {
            name: 'refresh',
            label: '@i18n:buttons.refresh',
            icon: 'fa-refresh'
        }
    ],
	header_actions: [refresh]
};

reg.facet.register({
    type: 'some',
    ctor: SomeFacet,
    spec: some_facet_spec
});

prerequisite for: https://fedorahosted.org/freeipa/ticket/4286

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2015-11-27 15:50:56 +01:00
..
guides webui doc: typo fixes in guides 2014-04-23 17:15:41 +02:00
categories.json webui: extract header and action logic from facet to separate mixins 2015-11-27 15:50:56 +01:00
config.json webui: FormMixin 2014-04-15 12:41:53 +02:00
doc.css Configuration for JSDuck documentation generator 2013-10-16 18:08:17 +02:00
guides.json webui doc: typo fixes in guides 2014-04-23 17:15:41 +02:00
Makefile Configuration for JSDuck documentation generator 2013-10-16 18:08:17 +02:00