Class: Engine2::StarToManyFieldLinkListMeta

Inherits:
StarToManyFieldMeta show all
Defined in:
lib/engine2/meta/list_meta.rb

Instance Attribute Summary

Attributes included from MetaListSupport

#filters, #orders

Attributes inherited from Meta

#action, #assets, #invokable, #static

Instance Method Summary collapse

Methods inherited from StarToManyFieldMeta

#list_context

Methods inherited from StarToManyListMeta

#list_context

Methods inherited from ListMeta

#invoke, #list_context, #list_search, #post_run

Methods included from MetaListSupport

#filter, #order, #post_process, #post_run, #search_live, #search_template, #searchable, #searchable_tabs, #select_toggle_menu, #sortable, #template

Methods included from MetaModelSupport

#action_defined, #get_type_info, #hide_pk, #show_pk, #unsupported_association

Methods included from MetaAPISupport

#config, #decorate, #field_filter, #hide_fields, #info, #info!, #loc!, #reload_routes!, #render, #show_fields

Methods included from MetaTabSupport

#field_tabs, #lazy_tab, #select_tabs

Methods included from MetaPanelSupport

#modal_action, #panel, #panel_class, #panel_footer, #panel_panel_template, #panel_template, #panel_title, #post_run

Methods included from MetaMenuSupport

#menu, #menu?, #post_process

Methods included from MetaOnChangeSupport

#on_change

Methods included from MetaQuerySupport

#find_record, #get_query, #post_run, #query, #select

Methods inherited from Meta

#action_defined, #check_static_meta, #dynamic?, #freeze_meta, #get, http_method, #http_method, inherited, #initialize, #invoke!, #lookup, #merge, #meta_type, meta_type, #post_process, #post_run, #request, #request_meta_proc_params, #split_keys

Constructor Details

This class inherits a constructor from Engine2::Meta

Instance Method Details

#pre_runObject



272
273
274
275
276
277
278
279
# File 'lib/engine2/meta/list_meta.rb', line 272

def pre_run
    super
    modal_action true
    panel_panel_template 'scaffold/list'
    panel_title LOCS[:link_title]
    menu(:panel_menu).option_at 0, :link, icon: "ok", enabled: "action.selected_size() > 0"
    action.parent.*.menu(:menu).option_at 0, :link_list, icon: "paperclip", button_loc: false
end