diff options
| author | Petr Vobornik <pvoborni@redhat.com> | 2015-10-29 15:04:05 +0100 |
|---|---|---|
| committer | Petr Vobornik <pvoborni@redhat.com> | 2015-11-27 15:50:56 +0100 |
| commit | 74b7c00365e66967fa6a7a62a3d0eaab99443824 (patch) | |
| tree | 094dce12ee230a1e755efb3a0f2bccbb31d2336c /ipapython/py_default_encoding/Makefile | |
| parent | fc4b33d05017fac255aa8600fc45b5795f9a51c6 (diff) | |
| download | freeipa-74b7c00365e66967fa6a7a62a3d0eaab99443824.tar.gz freeipa-74b7c00365e66967fa6a7a62a3d0eaab99443824.tar.xz freeipa-74b7c00365e66967fa6a7a62a3d0eaab99443824.zip | |
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>
Diffstat (limited to 'ipapython/py_default_encoding/Makefile')
0 files changed, 0 insertions, 0 deletions
