app/controllers/anoubis/data/defaults.rb
##
# Sets frame buttons for every using tab.
# Key of the button is an action for frontend application. Every button consists of next attributes:
#
# *Attributes:*
# - *:type* (String) <i>(defaults to: 'default')</i> --- type of the button ('primary', 'danger', 'default')
# - *:mode* (String) <i>(defaults to: 'single')</i> --- button action object ('single', 'multiple')
#
# By default system defines two buttons: 'New' (for create new element in table) and 'Delete' (for
# delete multiple element)
#
# @param [Hash] args additional parameters are used for define frame buttons.
# @option args [String] :tab current tab is used for generation
#
# @return [Hash] returns hash of assigned buttons.
#
# @example Sets no buttons
#   def frame_buttons(args = {})
#     {
#     }
#   end
#
# @example Sets only 'New' button
#   def frame_buttons(args = {})
#     {
#         new: { type: 'primary' }
#     }
#   end
Sets frame buttons for every using tab.
Key of the button is an action for frontend application. Every button consists of next attributes.



By default system defines two buttons: 'New' (for create new element in table) and 'Delete' (for
delete multiple element)
Sets frame buttons for every using tab . Key of the button is an action for frontend application . Every button consists of next attributes . By default system defines two buttons : ' New ' ( for create new element in table ) and ' Delete ' ( for delete multiple element )
def frame_buttons(args = {})
        {
          new: { type: 'primary' },
          delete: { mode: 'multiple', type: 'danger' }
        }
      end
def frame_buttons ( args = { } ) { new : { type : 'primary' } , delete : { mode : 'multiple' , type : 'danger' } } end
Sets frame buttons for every using tab.
Sets frame buttons for every using tab .
returns hash of assigned buttons.
returns hash of assigned buttons .
Hash
args
:tab current tab is used for generation
: tab current tab is used for generation
<not_specific>
args additional parameters are used for define frame buttons.
args additional parameters are used for define frame buttons .
example
Sets no buttons def frame_buttons(args = {}) { } end
Sets no buttons def frame_buttons ( args = {} ) { } end
example
Sets only 'New' button def frame_buttons(args = {}) { new: { type: 'primary' } } end
Sets only ' New ' button def frame_buttons ( args = {} ) { new : { type : ' primary ' } } end