From 011a387f5f6ac00e559634954fb1a1e6123d33ef Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sat, 16 Dec 2017 16:55:22 +0800 Subject: Add form checkbox, radio and switch support to Menus --- docs/components.html | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'docs/components.html') diff --git a/docs/components.html b/docs/components.html index 838d1fe..5acf310 100644 --- a/docs/components.html +++ b/docs/components.html @@ -1237,19 +1237,29 @@

Add a container element with the menu class. And add child elements with the menu-item class. You can separate menu items with a divider. Spectre.css does not include JavaScript code, you will need to implement your JS to interact with the menus.

+

Menus also have Form controls (checkbox, radio and checkbox) support.

@@ -1257,12 +1267,19 @@ <!-- menu header text --> <li class="divider" data-content="LINKS"> </li> - <!-- menu item --> + <!-- menu item standard --> <li class="menu-item"> <a href="#"> <i class="icon icon-link"></i> Slack </a> </li> + <!-- menu item with form control --> + <li class="menu-item"> + <label class="form-checkbox"> + <input type="checkbox"> + <i class="form-icon"></i> form-checkbox + </label> + </li> <!-- menu divider --> <li class="divider"></li> <!-- menu item with badge --> -- cgit v1.3.1-23-gd82d