parameters: (self, link_wdg, element_name, config, options)
docstring: this method provides the changed to add behaviors to a link
docstring_summary: this method provides the changed to add behaviors to a link
docstring_tokens: this method provides the changed to add behaviors to a link
function: def add_link_behavior(self, link_wdg, element_name, config, options):
          '''this method provides the changed to add behaviors to a link'''
  
          edit_allowed = True
          if self.mode == 'edit' and edit_allowed:
                  # add the drag/drop behavior
              behavior = {
                  "type": 'drag',
                  "drag_el": 'drag_ghost_copy',
                  "drop_code": 'manageSideBar',
                  "cb_set_prefix": 'spt.side_bar.pp',
                  'cbjs_action_onnomotion':  'spt.side_bar.display_element_info_cbk(evt,bvr);',
                  'class_name':   self.get_detail_class_name()
              }
  
              link_wdg.add_behavior(behavior)
              link_wdg.set_attr("SPT_ACCEPT_DROP", "manageSideBar")
function_tokens: def add_link_behavior ( self , link_wdg , element_name , config , options ) : edit_allowed = True if self . mode == 'edit' and edit_allowed : # add the drag/drop behavior behavior = { "type" : 'drag' , "drag_el" : 'drag_ghost_copy' , "drop_code" : 'manageSideBar' , "cb_set_prefix" : 'spt.side_bar.pp' , 'cbjs_action_onnomotion' : 'spt.side_bar.display_element_info_cbk(evt,bvr);' , 'class_name' : self . get_detail_class_name ( ) } link_wdg . add_behavior ( behavior ) link_wdg . set_attr ( "SPT_ACCEPT_DROP" , "manageSideBar" )