From 33ecc1d8df644c3a2b68a1f9f09796e269fcbc0f Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sun, 30 Mar 2014 13:08:26 +0200 Subject: [PATCH] Update docs --- doc/api/toolbar.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/api/toolbar.md b/doc/api/toolbar.md index 1ca61ced1..03a3d8f89 100644 --- a/doc/api/toolbar.md +++ b/doc/api/toolbar.md @@ -14,7 +14,17 @@ Example: var orderedlist = toolbar.button({ command: "insertorderedlist", localizationId: "pad.toolbar.ol.title", - class: "buttonicon-insertorderedlist" + class: "buttonicon buttonicon-insertorderedlist" +}) +``` + +You can also create buttons with text: + +``` +var myButton = toolbar.button({ + command: "myButton", + localizationId: "myPlugin.toolbar.myButton", + class: "buttontext" }) ```