                             handler: conf
                             
                     @_createButton action, conf, (err, button)=>
+                                                
+                        if typeof conf is 'string'
+                            conf =
+                                text: conf
+
+                        if typeof conf is 'function'
+                            conf =
+                                handler: conf
                         
-                        button.text conf.text || action
+                        if conf.text        
+                            button.text conf.text 
                         
                         if conf.title
                             button.attr 'title', conf.title
                             
+                                
                         @_append button.click (event)=>
+                        
                             if conf.handler
                                 conf.handler.apply @, [event, _popup]
                             

                                @_emit action,
                                    event: event
                                    open: _popup
                                
                            return false
        

        ##
        configure: (config)->
        
            config = super new floyd.Config

                template: ->
                    div class:'editor Buttons floyd-loading', style:'opacity: .35'
                
            , config
            
            @__buttons = config.buttons
            
            return config
        
        ##
        ##
