Example #1
0
def button_dropup(text, *menu_items):
    ''' Returns the HTML code for a button with a caret and a drop-up menu
    containing the given menu items. '''

    return button_dropup_group(
        zm_button(text),
        caret_button(),
        dropdown_menu(*menu_items),
    )
def split_button_dropup(text, *menu_items):
    """ Returns the HTML code for a two-button group, one with a caret and a
    drop-up menu containing the given menu items. """

    return button_dropup_group(zm_button(text), caret_button(), dropdown_menu(*menu_items))
def button_dropdown(text, *menu_items):
    """ Returns the HTML code for a button with a caret and a dropdown menu
    containing the given menu items. """

    return button_group(zm_button(text), caret_button(), dropdown_menu(*menu_items))
Example #4
0
def split_button_dropdown(text, *menu_items):
    ''' Returns the HTML code for a two-button group, one with a caret and a
    dropdown menu containing the given menu items. '''

    return button_group(zm_button(text), caret_button(),
                        dropdown_menu(*menu_items))